/* =====================================================================
   ACDA NATIONAL — auth.css
   Shared styles for login + register pages
   Version: 0.1 (V1 Foundation)
   ===================================================================== */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(212, 175, 55, 0.10), transparent 60%),
        radial-gradient(800px 420px at -10% 0%, rgba(11, 93, 59, 0.10), transparent 55%),
        var(--color-bg);
}

.auth-topbar {
    border-bottom: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-bg) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
}

.auth-topbar-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.auth-topbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.auth-shell {
    padding: var(--space-8) 0 var(--space-12);
}

.auth-grid {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-6);
    align-items: stretch;
}

@media (max-width: 900px) {
    .auth-grid {
        grid-template-columns: 1fr;
        width: min(560px, calc(100% - 2rem));
    }
    .auth-brand-panel { order: 2; }
    .auth-form-panel { order: 1; }
}

.auth-brand-panel {
    background: linear-gradient(160deg, var(--acda-green-900), var(--acda-green-800) 55%, var(--acda-green-700));
    color: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    inset: auto -20% -30% auto;
    width: 280px;
    height: 280px;
    border-radius: 40% 60% 50% 50%;
    background: rgba(212, 175, 55, 0.16);
    pointer-events: none;
}

.auth-brand-inner { position: relative; z-index: 1; }

.auth-brand-title {
    color: #fff;
    font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.6rem);
    line-height: 1.12;
    margin-bottom: var(--space-4);
}

.auth-brand-copy {
    color: rgba(255,255,255,0.9);
    max-width: 42ch;
    margin-bottom: var(--space-6);
}

.auth-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-3);
}

.auth-points li {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    color: rgba(255,255,255,0.95);
}

.auth-point-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: clamp(1.25rem, 2vw, 2rem);
}

.auth-card-header { margin-bottom: var(--space-5); }
.auth-card-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-2);
}
.auth-card-subtitle {
    color: var(--color-text-muted);
    margin: 0;
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.link-btn {
    background: none;
    border: none;
    color: var(--color-text-link);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    cursor: pointer;
    padding: 0;
}
.link-btn:hover {
    color: var(--color-text-link-hover);
    text-decoration: underline;
}

.password-field {
    position: relative;
}
.password-field .form-input {
    padding-right: 4.5rem;
}
.password-toggle {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    padding: 0.4rem 0.55rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.password-toggle:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.btn .btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
.btn.loading .btn-label { display: none; }
.btn.loading .btn-spinner { display: inline-block; }
.btn .btn-spinner.hidden { display: none; }

.auth-footer-text {
    margin-top: var(--space-5);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

.auth-legal {
    margin-top: var(--space-4);
    text-align: center;
    color: var(--color-text-subtle);
    font-size: var(--fs-xs);
    max-width: 52ch;
    margin-inline: auto;
}

.auth-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-4) 0;
}
.auth-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
    color: var(--color-text-subtle);
    font-size: var(--fs-xs);
}
.auth-footer-links {
    display: inline-flex;
    gap: var(--space-2);
    align-items: center;
}

/* Register multi-step extras */
.auth-steps {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}
.auth-step-dot {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--color-border);
}
.auth-step-dot.active {
    background: var(--color-primary);
}
.auth-step-dot.done {
    background: var(--acda-gold-600);
}

.auth-summary {
    background: var(--color-bg-inset);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    display: grid;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}
.auth-summary-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: var(--fs-sm);
}
.auth-summary-label { color: var(--color-text-muted); }
.auth-summary-value { font-weight: var(--fw-semibold); text-align: right; }

.photo-preview-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.photo-preview {
    width: 84px;
    height: 84px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--color-border);
    background: var(--color-bg-inset);
}
.photo-preview.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-subtle);
    font-size: var(--fs-xs);
    text-align: center;
    padding: 0.5rem;
}