/* ============================================================
       LOGIN PAGE
       ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.08),
            transparent 320px
        ),
        radial-gradient(
            circle at bottom right,
            rgba(59, 130, 246, 0.08),
            transparent 320px
        ),
        var(--color-bg);
    overflow: hidden;
    position: relative;
}

.login-wrapper {
    width: 100%;
    max-width: 1150px;
    min-height: 580px;
    display: grid;
    grid-template-columns: 1fr 520px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ============================================================
       LEFT
       ============================================================ */
.login-brand {
    position: relative;
    padding: 5rem;
    background: linear-gradient(135deg, #1c2230 0%, #232b3d 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.login-brand::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    top: -250px;
    right: -180px;
}

.login-brand::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    bottom: -180px;
    left: -120px;
}

.login-brand__content {
    position: relative;
    z-index: 2;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 3rem;
}

.login-logo__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand-blue);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-logo__text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-logo__text span {
    color: var(--brand-blue);
}

.login-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.login-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 460px;
}

.login-stats {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.login-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.login-stat span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
       RIGHT
       ============================================================ */
.login-form-area {
    background: white;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-header {
    margin-bottom: 2.5rem;
}

.login-form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.login-form-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.login-input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.login-input-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3b2;
}

.login-input {
    width: 100%;
    height: 56px;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    background: #fff;
    padding-inline: 52px 18px;
    font-size: 0.95rem;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.login-input:hover {
    border-color: #cbd5e1;
}

.login-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.login-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.login-checkbox input {
    accent-color: var(--brand-blue);
}

.login-link {
    color: var(--brand-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.login-link:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    height: 56px;
    border-radius: 18px;
    background: var(--brand-blue);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.login-submit:hover {
    background: var(--brand-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.login-footer a {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ============================================================
       FEEDBACK MESSAGE
       ============================================================ */
.feedback-message {
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: none;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.feedback-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: block;
}

.feedback-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

/* ============================================================
       MOBILE
       ============================================================ */
@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .login-brand {
        display: none;
    }
}

@media (max-width: 640px) {
    .login-page {
        padding: 1rem;
    }

    .login-form-area {
        padding: 2rem;
    }

    .login-form-header h1 {
        font-size: 1.8rem;
    }
}
