/* Account pages – PatchManager-style (Gentrack) – Sign in / Register */
/* When html[data-theme] is set (from admin theme), use theme variables for consistency */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(155deg, #f1f5f9 0%, #e2e8f0 55%, #dbeafe 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    position: relative;
}
html[data-theme] body {
    background: var(--bg);
    color: var(--text);
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 85% 55% at 50% -20%, rgba(37,99,235,0.13), transparent), radial-gradient(ellipse 55% 40% at 100% 60%, rgba(14,165,233,0.1), transparent), radial-gradient(ellipse 55% 35% at 0% 75%, rgba(16,185,129,0.08), transparent);
    pointer-events: none;
}
html[data-theme] body::before {
    background: radial-gradient(ellipse 90% 60% at 50% -15%, rgba(var(--accent-rgb), 0.08) 0%, transparent 50%);
}
.account-wrap { position: relative; z-index: 1; width: 100%; max-width: 440px; padding: 24px; }
.account-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.96) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148,163,184,0.28);
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 18px 50px rgba(15,23,42,0.18), 0 0 0 1px rgba(255,255,255,0.35);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}
html[data-theme] .account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}
.account-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(37,99,235,0.35) 0%, rgba(14,165,233,0.35) 55%, rgba(16,185,129,0.28) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
html[data-theme] .account-card::before { display: none; }
.account-card:hover {
    box-shadow: 0 24px 62px rgba(15,23,42,0.22), 0 0 0 1px rgba(255,255,255,0.45);
    transform: translateY(-2px);
}
html[data-theme] .account-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(var(--accent-rgb), 0.2);
}
.account-brand { text-align: center; margin-bottom: 8px; }
.account-brand-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25;
    padding: 10px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37,99,235,0.07) 0%, rgba(14,165,233,0.08) 100%);
    border: 1px solid rgba(37,99,235,0.18);
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(37,99,235,0.09);
}
html[data-theme] .account-brand-block {
    background: rgba(var(--accent-rgb), 0.08);
    border-color: rgba(var(--accent-rgb), 0.2);
}
.account-brand-primary {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
}
html[data-theme] .account-brand-primary { color: var(--text); }
.account-brand-secondary {
    font-size: 0.8125rem;
    color: #64748b;
}
html[data-theme] .account-brand-secondary { color: var(--muted); }
.account-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e293b;
    text-align: center;
}
html[data-theme] .account-title { color: var(--text); }
.account-title-underline {
    display: block;
    width: 120px;
    height: 6px;
    margin: 12px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 55%, #10b981 100%);
    box-shadow: 0 4px 16px rgba(37,99,235,0.28);
}
html[data-theme] .account-title-underline { background: var(--accent); box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.4); }
.account-subtitle {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 0.95rem;
    text-align: center;
}
html[data-theme] .account-subtitle { color: var(--muted); }
.account-form .form-group { margin-bottom: 20px; }
.account-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}
html[data-theme] .account-form label { color: var(--muted); }
.account-form .form-control {
    width: 100%;
    padding: 12px 0 10px;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    background: transparent;
    color: #1e293b;
    transition: border-color 0.25s;
}
html[data-theme] .account-form .form-control { border-bottom-color: var(--border); color: var(--text); }
.account-form .form-control::placeholder { color: #94a3b8; }
html[data-theme] .account-form .form-control::placeholder { color: var(--muted); }
.account-form .form-control:focus {
    outline: none;
    border-bottom-color: #2563eb;
}
html[data-theme] .account-form .form-control:focus { border-bottom-color: var(--accent); }
.account-form .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}
.account-form .form-check input { width: 18px; height: 18px; accent-color: #2563eb; }
html[data-theme] .account-form .form-check input { accent-color: var(--accent); }
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 55%, #0284c7 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 8px 28px rgba(37,99,235,0.38), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: box-shadow 0.3s ease, transform 0.15s ease;
}
html[data-theme] .btn-primary {
    background: var(--accent);
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
}
.btn-primary:hover {
    box-shadow: 0 12px 34px rgba(37,99,235,0.44), inset 0 1px 0 rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0) scale(0.98); box-shadow: 0 4px 18px rgba(37,99,235,0.34); }
.account-footer {
    margin-top: 24px;
    font-size: 0.875rem;
    text-align: center;
    color: #64748b;
}
html[data-theme] .account-footer { color: var(--muted); }
.account-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
html[data-theme] .account-footer a { color: var(--accent); }
.account-footer a:hover { text-decoration: underline; }
.account-forgot { color: #2563eb; text-decoration: none; font-size: 0.875rem; font-weight: 500; }
html[data-theme] .account-forgot { color: var(--accent); }
.account-forgot:hover { text-decoration: underline; }
.text-danger { color: #dc2626; font-size: 0.8125rem; margin-top: 6px; display: block; }
html[data-theme] .text-danger { color: var(--danger); }
.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}
.account-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
}
html[data-theme] .account-tabs { background: var(--surface-elevated); }
.account-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.account-tabs a:hover { color: #1e293b; background: #e2e8f0; }
html[data-theme] .account-tabs a:hover { color: var(--text); background: var(--border); }
.account-tabs a.active { color: #2563eb; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
html[data-theme] .account-tabs a.active { color: var(--accent); background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
