/**
 * Auth Pages Styles (Refined)
 * Modern, Clean & Professional
 */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--color-bg);
}

.auth-wrapper {
    width: 100%;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: var(--spacing-xl);
    align-items: stretch;
}

.auth-side {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background:
        radial-gradient(1200px 600px at 20% 10%, rgba(99, 102, 241, 0.25), transparent 50%),
        radial-gradient(900px 500px at 80% 30%, rgba(14, 165, 233, 0.18), transparent 55%),
        linear-gradient(180deg, var(--color-bg-card) 0%, var(--color-bg-alt) 100%);
    box-shadow: var(--shadow-lg);
    display: none;
}

.auth-side-inner {
    height: 100%;
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--spacing-xl);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.auth-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    box-shadow: 0 18px 35px -14px rgba(99, 102, 241, 0.55);
    position: relative;
    flex-shrink: 0;
}

.auth-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 55%);
}

.auth-brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--color-text);
}

.auth-brand-tagline {
    margin-top: 4px;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.auth-bullets {
    margin-top: var(--spacing-xl);
    display: grid;
    gap: 10px;
    color: var(--color-text-light);
    font-weight: 500;
}

.auth-bullets li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.auth-bullets li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--brand-primary);
    margin-top: 7px;
    box-shadow: 0 0 0 4px var(--brand-primary-light);
    flex-shrink: 0;
}

.auth-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.auth-logo-name {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: var(--color-text);
}

.auth-logo-tagline {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.auth-label {
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--color-border);
}

.auth-social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-card);
    color: var(--color-text);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.auth-social-btn:hover:not(:disabled) {
    background-color: var(--color-bg-alt);
    border-color: var(--color-text-muted);
}

.auth-social-icon {
    width: 20px;
    height: 20px;
}

.auth-links {
    text-align: center;
    margin-top: var(--spacing-md);
}

.auth-links a {
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.auth-footer-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
}

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

.auth-footer-card a {
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Register page helpers */
.form-help {
    display: block;
    margin-top: 6px;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.field-status {
    margin-top: 8px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.field-status.hint { color: var(--color-text-muted); }
.field-status.ok { color: var(--brand-success); }
.field-status.error { color: var(--brand-danger); }

/* Password strength widget (modern + compact) */
.password-strength {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
}

.password-strength-bar {
    height: 8px;
    background: rgba(100, 116, 139, 0.25);
    border-radius: 999px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 20%;
    border-radius: 999px;
    transition: width var(--transition-base), background-color var(--transition-base);
    background: var(--brand-warning);
}

.password-strength-fill.weak { width: 30%; background: var(--brand-danger); }
.password-strength-fill.medium { width: 65%; background: var(--brand-warning); }
.password-strength-fill.strong { width: 100%; background: var(--brand-success); }

.password-strength-text {
    margin-top: 8px;
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    font-weight: 600;
}

/* Wider layout on desktop */
@media (min-width: 1024px) {
    .auth-side { display: block; }
    .auth-wrapper { gap: var(--spacing-lg); }
}

/* Stack on mobile */
@media (max-width: 1023px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-wrapper { max-width: 480px; }
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.auth-checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--brand-primary);
}
