/* ============================================
   AUTH PAGES (Login / Register)
   ============================================ */
.auth-page {
    min-height: calc(100vh - var(--header-height));
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ---------- Left: branded panel ---------- */
.auth-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-3xl);
    background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    overflow: hidden;
}

.auth-brand-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.auth-brand-shape-1 {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -140px;
}

.auth-brand-shape-2 {
    width: 280px;
    height: 280px;
    bottom: -100px;
    left: -80px;
    background: rgba(255, 255, 255, 0.06);
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 460px;
    margin: 0 auto;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--space-2xl);
}

.auth-brand-content h2 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: #fff;
}

.auth-brand-content > p {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.auth-brand-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.auth-brand-feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand-feature-text strong {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.auth-brand-feature-text span {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.75);
}

.auth-brand-quote {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
}

.auth-brand-quote-author {
    display: block;
    margin-top: var(--space-sm);
    font-size: var(--font-size-xs);
    font-style: normal;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Right: form panel ---------- */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-xl);
    background: #fff;
}

.auth-form-wrap {
    width: 100%;
    max-width: 400px;
}

.auth-logo-mobile {
    display: none;
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
}

.auth-header {
    margin-bottom: var(--space-xl);
}

.auth-header h1 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.auth-header p {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

.auth-form { }

.auth-footer {
    margin-top: var(--space-xl);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.auth-footer p {
    margin-bottom: var(--space-sm);
}

.auth-terms {
    font-size: var(--font-size-xs);
    color: var(--color-text-lighter);
    margin-top: var(--space-md);
}

.auth-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
    font-size: var(--font-size-xs);
    color: var(--color-text-lighter);
}

/* ---------- Icon-prefixed inputs ---------- */
.input-with-icon {
    position: relative;
}

.input-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-lighter);
    pointer-events: none;
    display: flex;
}

.input-with-icon .form-input {
    padding-left: 42px;
}

.input-with-icon .password-toggle {
    right: 12px;
}

/* ---------- Password strength meter (register) ---------- */
.strength-none {
    width: 0;
}

@media (max-width: 1024px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-logo-mobile {
        display: block;
        text-align: center;
    }

    .auth-form-panel {
        padding: var(--space-2xl) var(--space-lg);
    }
}

@media (max-width: 480px) {
    .auth-form-panel {
        padding: var(--space-xl) var(--space-md);
    }
}
