*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
}

.left-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    /*background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);*/
    overflow: hidden;
}

@media (max-width: 1024px) {
    .left-panel {
        display: none;
    }
}

.left-top {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.brand-mark {
    width: 150px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.brand-name {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.characters-area {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 450px;
}

.left-footer {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 24px;
}

    .left-footer a {
        font-size: 13px;
        color: rgba(255,255,255,0.45);
        text-decoration: none;
        transition: color 0.2s;
        cursor: pointer;
    }

        .left-footer a:hover {
            color: rgba(255,255,255,0.85);
        }

.decor-blur1 {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: rgba(59,130,246,0.25);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.decor-blur2 {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: rgba(30,64,175,0.3);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.decor-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

#characters-container {
    position: relative;
    width: 550px;
    height: 400px;
}


#char-purple {
    position: absolute;
    bottom: 0;
    left: 70px;
    width: 180px;
    height: 400px;
    background-color: #6C3FF5;
    border-radius: 10px 10px 0 0;
    z-index: 1;
    transform-origin: bottom center;
    will-change: transform;
}

#face-purple {
    position: absolute;
    display: flex;
    gap: 32px;
    left: 45px;
    top: 40px;
}

#char-black {
    position: absolute;
    bottom: 0;
    left: 240px;
    width: 120px;
    height: 310px;
    background-color: #2D2D2D;
    border-radius: 8px 8px 0 0;
    z-index: 2;
    transform-origin: bottom center;
    will-change: transform;
}

#face-black {
    position: absolute;
    display: flex;
    gap: 24px;
    left: 26px;
    top: 32px;
}

#char-orange {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 240px;
    height: 200px;
    background-color: #FF9B6B;
    border-radius: 120px 120px 0 0;
    z-index: 3;
    transform-origin: bottom center;
    will-change: transform;
}

#face-orange {
    position: absolute;
    display: flex;
    gap: 32px;
    left: 82px;
    top: 90px;
}

#char-yellow {
    position: absolute;
    bottom: 0;
    left: 310px;
    width: 140px;
    height: 230px;
    background-color: #E8D754;
    border-radius: 70px 70px 0 0;
    z-index: 4;
    transform-origin: bottom center;
    will-change: transform;
}

#face-yellow {
    position: absolute;
    display: flex;
    gap: 24px;
    left: 52px;
    top: 40px;
}

#mouth-yellow {
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #2D2D2D;
    border-radius: 9999px;
    left: 40px;
    top: 88px;
}

.eyeball {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: height;
    flex-shrink: 0;
}

.eyeball-pupil {
    border-radius: 50%;
    will-change: transform;
    flex-shrink: 0;
}

.pupil {
    border-radius: 50%;
    will-change: transform;
    flex-shrink: 0;
}

.right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #fff;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

.mobile-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 48px;
}

@media (max-width: 1024px) {
    .mobile-logo {
        display: flex;
    }
}

.mobile-logo-icon {
    width: 150px;
    height: 32px;
    border-radius: 8px;
    /*background: #eff6ff;*/
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top:-100px;
    position:absolute;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.3;
}

.form-subtitle {
    font-size: 16px;
    /*color: #6b7280;*/
    color: #1e40af;
    font-weight:bold;
    margin: 0;
    line-height: 1.6;
}

.login-form {
    margin: 0;
}

.field-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.form-item {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

    .input-wrapper:hover {
        border-color: #3b82f6;
    }

    .input-wrapper.focused {
        border-color: #1e40af;
        box-shadow: 0 0 0 3px rgba(30,64,175,0.08);
        background: #fff;
    }

    .input-wrapper.error-border {
        border-color: #dc2626;
    }

.prefix-icon {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b7c3;
    font-size: 15px;
}

    .prefix-icon svg {
        width: 15px;
        height: 15px;
        fill: currentColor;
    }

.form-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
    padding: 0;
    font-family: inherit;
}

    .form-input::placeholder {
        color: #c0c4cc;
    }

.suffix-icon {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

    .suffix-icon:hover {
        color: #374151;
    }

    .suffix-icon svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

.field-error {
    font-size: 13px;
    color: #dc2626;
    margin-top: 4px;
    display: none;
}

.error-box {
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
}

.submit-btn {
    width: 100%;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    /*background: #1e40af;*/
    background: #1E9FFF;
    border: none;
    color: #fff;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

    .submit-btn:hover {
        background: #1d4ed8;
    }

    .submit-btn:active {
        opacity: 0.85;
    }

    .submit-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

    .submit-btn .spinner {
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255,255,255,0.4);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin 0.7s linear infinite;
        display: none;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ·ΦΈξΟί */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0;
    color: #d1d5db;
    font-size: 13px;
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e5e7eb;
    }

    .divider span {
        color: #9ca3af;
        white-space: nowrap;
    }


.signup-row {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 28px;
}

.signup-link {
    color: #1e40af;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

    .signup-link:hover {
        text-decoration: underline;
        color: #1d4ed8;
    }

.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e40af;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

    .toast.show {
        opacity: 1;
    }

.code-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    /*    background: #1e40af;*/
    background: #1E9FFF;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

    .code-btn:hover:not(:disabled) {
        background: #1d4ed8;
    }

    .code-btn:disabled {
        background: #e5e7eb;
        color: #9ca3af;
        cursor: not-allowed;
    }

