body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(147, 51, 234, 0.15), transparent 45%),
        #0f172a;
    /* Slate 900 */
    background-attachment: fixed;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel-active {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(129, 140, 248, 0.3);
    box-shadow: 0 0 20px 0 rgba(99, 102, 241, 0.15);
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Centered Cookie Consent Modal Styles */
.cookie-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background-color: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    pointer-events: none !important;
}

.cookie-modal-overlay.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.cookie-modal-card {
    transform: scale(0.9) translateY(20px) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cookie-modal-overlay.show .cookie-modal-card {
    transform: scale(1) translateY(0) !important;
}

.tutorial-highlight {
    outline: 2px solid #6366f1 !important;
    /* indigo-500 */
    outline-offset: 4px;
    box-shadow: 0 0 15px 5px rgba(99, 102, 241, 0.5) !important;
    position: relative !important;
    z-index: 1001 !important;
    pointer-events: auto !important;
}


.tutorial-tooltip {
    position: fixed;
    z-index: 1002;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    max-width: 320px;
    width: calc(100vw - 32px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.tutorial-tooltip.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.tutorial-tooltip::after {
    content: '';
    position: absolute;
    border-width: 8px;
    border-style: solid;
    border-color: transparent;
}

.tutorial-tooltip.arrow-top::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: rgba(15, 23, 42, 0.95);
}

.tutorial-tooltip.arrow-bottom::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: rgba(15, 23, 42, 0.95);
}

.tutorial-tooltip.arrow-left::after {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: rgba(15, 23, 42, 0.95);
}

.tutorial-tooltip.arrow-right::after {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: rgba(15, 23, 42, 0.95);
}

/* Admin / Login specific styles */
.input-glow:focus {
    box-shadow: 0 0 15px 0 rgba(99, 102, 241, 0.3);
    border-color: rgba(129, 140, 248, 0.5);
}

.btn-glow {
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 20px 0 rgba(129, 140, 248, 0.4);
    transform: translateY(-1px);
}

.btn-glow:active {
    transform: translateY(1px);
}

/* ── Shared Form Utilities (auth, future pages) ───────────────────────── */

.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    color: #f1f5f9;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-input::placeholder { color: #475569; }

/* Feedback alerts */
.alert {
    display: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
}
.alert.show { display: flex; align-items: flex-start; gap: 10px; }

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}
.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.alert-info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

/* Password strength bars */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    height: 3px;
}
.strength-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    transition: background 0.3s ease;
}
.strength-bar.weak   { background: #ef4444; }
.strength-bar.medium { background: #f59e0b; }
.strength-bar.strong { background: #10b981; }
.strength-label {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

/* Spinner (loading state inside buttons) */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}
.btn-loading .btn-label { display: none; }
.btn-loading .spinner   { display: block; }

/* ── Auth/Login Page Layout & Elements ── */
.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    padding: 40px 36px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(99, 102, 241, 0.06);
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
}

/* Tab switcher (specifically for auth.html tab panels) */
.tab-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 32px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.tab-btn:not(.active):hover {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.08);
}

/* Form panels visibility */
.auth-form { display: none; }
.auth-form.active { display: block; }

.form-title {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Submit button gradient & hover */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    margin-top: 8px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    box-shadow: 0 0 20px 0 rgba(129, 140, 248, 0.4);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Back links & footers below card */
.back-link {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: #475569;
}

.back-link a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.back-link a:hover {
    color: #a5b4fc;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #334155;
}
