/* Auth Pages Styling */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    position: relative;
    padding: 6rem 2rem 2rem;
    background-image: 
        
        transparent;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-family: var(--heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.6;
}

.pre-launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #34d399;
    letter-spacing: 0.02em;
}

.pre-launch-badge svg {
    width: 14px;
    height: 14px;
}

.auth-body {
    margin-top: 2rem;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-google:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--text-3);
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    position: relative;
    padding: 0 1rem;
    z-index: 1;
    font-size: 0.8rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}

.form-group input {
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--text);
    transition: all 0.3s;
    font-family: var(--body);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(212,169,87, 0.1);
}

.form-group input::placeholder {
    color: var(--text-3);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -0.5rem 0 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-2);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.link-small {
    font-size: 0.85rem;
    color: var(--accent-bright);
    text-decoration: none;
    transition: color 0.3s;
}

.link-small:hover {
    color: var(--accent);
    text-decoration: underline;
}

.btn-primary.btn-full {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1.5rem;
    justify-content: center;
}

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

.auth-footer a {
    color: var(--accent-bright);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.auth-terms {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-3);
    line-height: 1.6;
}

.auth-terms a {
    color: var(--text-2);
    text-decoration: underline;
}

/* Flash Messages — canonical definitions in dashboard.css */

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

/* === Auth helpers added for verify/reset/account flows === */

.auth-inline-link {
    font-size: 0.85rem;
    color: var(--accent-bright, #ead29b);
    text-decoration: none;
}

.auth-inline-link:hover {
    text-decoration: underline;
}

.verify-note {
    background: rgba(212,169,87, 0.08);
    border: 1px solid rgba(212,169,87, 0.18);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-2, #a1a1aa);
}

.verify-note p {
    margin: 0;
}

/* === Account page === */

/* ===== ACCOUNT PAGE — glass redesign ===== */

.acct {
    max-width: 640px;
    margin: 0 auto 4rem;
    padding: 0 1.25rem; /* section-level padding-top handles navbar clearance */
}

/* --- Hero: avatar + name + email + badges --- */
.acct-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.acct-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #d4a957;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.acct-avatar span {
    color: #fff;
    font-family: var(--heading, 'Space Grotesk', sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.acct-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(212,169,87, 0.3);
}

.acct-info { flex: 1; min-width: 0; }

.acct-name {
    margin: 0;
    font-family: var(--heading, 'Space Grotesk', sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.acct-email {
    color: #71717a;
    font-family: 'DM Mono', 'SF Mono', Menlo, monospace;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acct-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.acct-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.06);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.acct-badge-pre {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.3);
    color: #6ee7b7;
}

.acct-badge-beta {
    background: rgba(212,169,87, 0.12);
    border-color: rgba(212,169,87, 0.3);
    color: #e9c97e;
}

/* --- Section wrapper --- */
.acct-section {
    margin-bottom: 1.75rem;
}

.acct-section-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    color: #52525b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.acct-section-head svg { color: #52525b; }

.acct-section-head-danger { color: #f87171; }
.acct-section-head-danger svg { color: #f87171; }

.acct-section-danger { margin-top: 2.5rem; }

/* --- Glass card --- */
.acct-card {
    background: rgba(15, 17, 23, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 0.5rem;
}

.acct-card h2 {
    margin: 0 0 0.35rem;
    font-family: var(--heading, 'Space Grotesk', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.acct-card p {
    margin: 0 0 0.85rem;
    color: #71717a;
    font-size: 0.82rem;
    line-height: 1.55;
}

.acct-card p:last-child { margin-bottom: 0; }

.acct-card p a {
    color: #ead29b;
    text-decoration: none;
    border-bottom: 1px solid rgba(234, 210, 155, 0.35);
}

.acct-card p a:hover { color: #f5e4bf; border-color: #f5e4bf; }

.acct-card-muted {
    background: rgba(15, 17, 23, 0.4);
    border-color: rgba(255, 255, 255, 0.04);
}

.acct-card-muted p { font-size: 0.78rem; margin-bottom: 0; }

.acct-card-danger {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.04);
}

.acct-card-danger h2 { color: #fca5a5; }

/* --- Buttons --- */
.acct-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    color: #d4d4d8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.acct-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.acct-btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.25);
}

.acct-btn-danger:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.4);
}

/* --- Promo form --- */
.acct-promo-form {
    display: flex;
    gap: 0.4rem;
}

.acct-promo-form input[type="text"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    color: #e4e4e7;
    font-family: inherit;
    font-size: 0.82rem;
    outline: none;
    min-width: 0;
    transition: border-color 0.15s ease;
}

.acct-promo-form input[type="text"]:focus {
    border-color: rgba(212,169,87, 0.5);
}

.acct-promo-form button { white-space: nowrap; }

/* --- Mobile --- */
@media (max-width: 540px) {
    .acct { margin-top: 2rem; }
    .acct-hero { gap: 1rem; }
    .acct-avatar { width: 48px; height: 48px; }
    .acct-avatar span { font-size: 1rem; }
    .acct-name { font-size: 1.15rem; }
    .acct-card { padding: 1rem 1.1rem; }
    .acct-promo-form { flex-direction: column; }
    .acct-promo-form button { width: 100%; justify-content: center; }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(234,210,155, 0.4);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -8px rgba(239, 68, 68, 0.5);
}

.form-optional {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75em;
    font-weight: 400;
    margin-left: 0.25rem;
}

.register-codes {
    margin: 0.25rem 0 0.75rem;
}

.register-codes summary {
    color: var(--accent, #ead29b);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.register-codes summary::-webkit-details-marker {
    display: none;
}

.register-codes summary::before {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(212,169,87, 0.15);
    color: var(--accent, #ead29b);
    font-size: 1rem;
    font-weight: 700;
    line-height: 0;
    padding-bottom: 1px;
    flex-shrink: 0;
}

.register-codes[open] summary::before {
    content: '−';
    padding-bottom: 2px;
}

.register-codes-body {
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.register-codes-body .form-group {
    margin-bottom: 0;
}
