<style nonce="{{ csp_nonce }}">

/* === login.html === */
main {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 24px;
    }
    .login-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 40px;
        width: 100%;
        max-width: 420px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    .login-card h1 {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 8px;
        text-align: center;
        color: var(--text);
        letter-spacing: -0.02em;
    }
    .login-card .subtitle {
        color: var(--text-muted);
        text-align: center;
        margin-bottom: 24px;
        font-size: 14px;
    }
    .login-card .card-header {
        text-align: center;
        margin-bottom: 24px;
    }
    .login-card .card-header .logo {
        font-size: 28px;
        font-weight: 700;
        color: var(--text);
        letter-spacing: -0.02em;
    }
    .login-card .card-header .logo span {
        color: var(--accent);
    }
    .login-card input {
        margin: 8px 0;
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
        line-height: 1.4;
        background: #fafafa;
        transition: border-color 0.15s, box-shadow 0.15s;
        min-height: 48px;
        box-sizing: border-box;
    }
    .login-card input:focus {
        outline: none;
        border-color: #4F46E5;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }
    .login-card .btn {
        width: 100%;
        margin-top: 12px;
        padding: 12px;
    }
    .login-card .btn-secondary {
        background: var(--text-muted);
    }
    .login-card .btn-secondary:hover {
        background: #555;
    }
    .error {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #991b1b;
        padding: 10px 14px;
        border-radius: 6px;
        margin-bottom: 16px;
        font-size: 13px;
    }
    .error ul {
        margin: 4px 0 0 16px;
    }
    .success-msg {
        background: var(--accent-dim);
        border: 1px solid rgba(16, 185, 129, 0.2);
        color: var(--accent-bright);
        padding: 10px 14px;
        border-radius: 6px;
        margin-bottom: 16px;
        font-size: 13px;
        text-align: center;
    }
    .remember {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 8px 0;
        font-size: 13px;
        color: var(--text-muted);
    }
    .remember input {
        width: auto;
        margin: 0;
        accent-color: var(--accent);
    }
    .tabs {
        display: flex;
        margin-bottom: 24px;
        border-bottom: 2px solid var(--border);
    }
    .tab {
        flex: 1;
        padding: 10px;
        text-align: center;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-muted);
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        transition: all 0.15s;
        background: none;
        border-top: none;
        border-left: none;
        border-right: none;
        font-family: var(--font);
    }
    .tab:hover {
        color: var(--text);
    }
    .tab.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }
    .tab-content { display: none; }
    .tab-content.active { display: block; }
    .btn-github {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: #24292f;
        color: white;
        text-align: center;
        text-decoration: none;
        border-radius: 6px;
        border: none;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        margin-top: 12px;
        transition: background 0.15s;
        font-family: var(--font);
    }
    .btn-github:hover {
        background: #1f2328;
    }
    .divider {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 16px 0;
        color: var(--text-dim);
        font-size: 12px;
    }
    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }
    .magic-hint {
        font-size: 12px;
        color: var(--text-muted);
        text-align: center;
        margin-top: 4px;
    }
    .auth-footer {
        text-align: center;
        font-size: 13px;
        margin-top: 16px;
        color: var(--text-muted);
    }
    .auth-footer a {
        color: var(--accent);
        font-weight: 500;
    }
    @media (max-width: 480px) {
        .login-card {
            padding: 24px;
            border-radius: 8px;
        }
        .login-card h1 {
            font-size: 20px;
        }
    }

/* === register.html === */
main {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 24px;
    }
    .login-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 40px;
        width: 100%;
        max-width: 420px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    .login-card h1 {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 8px;
        text-align: center;
        color: var(--text);
        letter-spacing: -0.02em;
    }
    .login-card .subtitle {
        color: var(--text-muted);
        text-align: center;
        margin-bottom: 24px;
        font-size: 14px;
    }
    .login-card .card-header {
        text-align: center;
        margin-bottom: 24px;
    }
    .login-card .card-header .logo {
        font-size: 28px;
        font-weight: 700;
        color: var(--text);
        letter-spacing: -0.02em;
    }
    .login-card .card-header .logo span {
        color: var(--accent);
    }
    .login-card input {
        margin: 8px 0;
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
        line-height: 1.4;
        background: #fafafa;
        transition: border-color 0.15s, box-shadow 0.15s;
        min-height: 48px;
        box-sizing: border-box;
    }
    .login-card input:focus {
        outline: none;
        border-color: #4F46E5;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }
    .login-card .btn {
        width: 100%;
        margin-top: 12px;
        padding: 12px;
    }
    .error {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #991b1b;
        padding: 10px 14px;
        border-radius: 6px;
        margin-bottom: 16px;
        font-size: 13px;
    }
    .error ul {
        margin: 4px 0 0 16px;
    }
    .pw-hint {
        font-size: 12px;
        color: var(--text-dim);
        margin-top: -4px;
    }
    .checkbox-group {
        margin: 20px 0;
    }
    .checkbox-group label {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        cursor: pointer;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid var(--border);
        font-size: 13px;
    }
    .checkbox-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0;
        cursor: pointer;
        accent-color: var(--accent);
    }
    .checkbox-group .cb-title {
        font-weight: 600;
        color: var(--text);
    }
    .checkbox-group .cb-desc {
        font-size: 11px;
        color: var(--text-dim);
        margin-top: 2px;
    }
    .auth-footer {
        text-align: center;
        font-size: 13px;
        margin-top: 16px;
        color: var(--text-muted);
    }
    .auth-footer a {
        color: var(--accent);
        font-weight: 500;
    }
    @media (max-width: 480px) {
        .login-card {
            padding: 24px;
            border-radius: 8px;
        }
        .login-card h1 {
            font-size: 20px;
        }
    }

/* === signup.html === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    :root {
        --bg: #0a0a0f;
        --bg-card: #12121a;
        --text: #e4e4e7;
        --text-muted: #71717a;
        --accent: #3b82f6;
        --border: #27272a;
        --success: #10b981;
        --font: 'Inter', system-ui, -apple-system, sans-serif;
    }
    body {
        font-family: var(--font);
        background: var(--bg);
        color: var(--text);
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 24px;
    }
    .card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 48px 40px;
        max-width: 440px;
        width: 100%;
        text-align: center;
    }
    .check {
        width: 56px; height: 56px; border-radius: 50%;
        background: rgba(16, 185, 129, 0.15);
        display: flex; align-items: center; justify-content: center;
        margin: 0 auto 24px;
        font-size: 28px; color: var(--success);
    }
    h1 {
        font-size: 24px; font-weight: 700; color: #fff;
        margin-bottom: 12px; letter-spacing: -0.02em;
    }
    p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 28px; }
    a {
        display: inline-block; padding: 10px 24px;
        background: var(--accent); color: #fff; text-decoration: none;
        border-radius: 8px; font-size: 14px; font-weight: 600;
        transition: background 0.15s;
    }
    a:hover { background: #2563eb; }
    .sub { margin-top: 20px; font-size: 13px; color: var(--text-muted); }

/* === admin_login.html === */
* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0f172a; color: #e2e8f0; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
        .login-container { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 2.5rem; width: 100%; max-width: 400px; }
        .logo { text-align: center; margin-bottom: 2rem; }
        .logo h1 { font-size: 1.5rem; color: #3b82f6; margin-bottom: 0.25rem; }
        .logo p { color: #94a3b8; font-size: 0.875rem; }
        .form-group { margin-bottom: 1.5rem; }
        label { display: block; font-size: 0.875rem; color: #94a3b8; margin-bottom: 0.5rem; }
        input { width: 100%; padding: 0.75rem 1rem; border: 1px solid #334155; border-radius: 8px; background: #0f172a; color: #e2e8f0; font-size: 1rem; }
        input:focus { outline: none; border-color: #3b82f6; }
        button { width: 100%; padding: 0.75rem; background: #3b82f6; color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 500; cursor: pointer; }
        button:hover { background: #2563eb; }
        .error { background: #7f1d1d; border: 1px solid #991b1b; color: #fecaca; padding: 0.75rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.875rem; }
        .back-link { text-align: center; margin-top: 1.5rem; }
        .back-link a { color: #3b82f6; text-decoration: none; font-size: 0.875rem; }

/* === verify_email.html === */
* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background: #0a0a0b;
        color: #e4e4e7;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .verify-container {
        max-width: 480px;
        padding: 32px;
        text-align: center;
    }

    .logo {
        font-family: 'SF Mono', 'Fira Code', monospace;
        font-size: 14px;
        color: #00ff41;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin-bottom: 24px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    p {
        color: #a1a1aa;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .email {
        color: #e4e4e7;
        font-weight: 500;
    }

    .btn {
        display: inline-block;
        padding: 12px 24px;
        background: #00ff41;
        color: #0a0a0b;
        text-decoration: none;
        border-radius: 6px;
        font-weight: 600;
        margin: 8px;
        transition: opacity 0.2s;
    }

    .btn:hover {
        opacity: 0.9;
    }

    .btn-secondary {
        background: transparent;
        border: 1px solid #27272a;
        color: #a1a1aa;
    }

    .btn-secondary:hover {
        background: #27272a;
        color: #e4e4e7;
    }

    .alert {
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 24px;
        font-size: 14px;
    }

    .alert-success {
        background: rgba(0, 255, 65, 0.1);
        border: 1px solid rgba(0, 255, 65, 0.3);
        color: #00ff41;
    }

    .alert-info {
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.3);
        color: #3b82f6;
    }

    .alert-error {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: #ef4444;
    }

    .timer {
        color: #71717a;
        font-size: 13px;
        margin-top: 16px;
    }
</style>
