/* ==========================================
   snicode.de - Authentication Stylesheet
   Design Paradigm: Cyber-Dark Glassmorphism
   ========================================== */

/* Custom properties for theme tokens */
:root {
    /* Color Palette */
    --bg-main: #060609;
    --bg-card: rgba(13, 13, 20, 0.6);
    --bg-card-opaque: #0f0f18;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Neon Accents */
    --cyan: #00f2fe;
    --blue: #4facfe;
    --purple: #7f00ff;
    --pink: #e100ff;
    
    /* Dynamic Gradients */
    --gradient-primary: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
    --gradient-accent: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    --gradient-bg: radial-gradient(circle at 50% 50%, #16122c 0%, #060609 100%);
    --gradient-glow-cyan: radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.08) 0%, transparent 45%);
    --gradient-glow-purple: radial-gradient(circle at 90% 80%, rgba(127, 0, 255, 0.08) 0%, transparent 45%);

    /* Typography */
    --font-ui: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Semantic Colors */
    --text-primary: #f5f6f9;
    --text-secondary: #9ea2b0;
    --text-muted: #5e6273;
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --error: #ef4444;
    --error-glow: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;

    /* Shadows & Blurs */
    --box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(16px);
    
    /* Layout */
    --card-width: 440px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ================= RESET & GENERAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    background-image: var(--gradient-bg);
    color: var(--text-primary);
    font-family: var(--font-ui);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Grids and Accents */
.bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-cyan {
    background-image: var(--gradient-glow-cyan);
}

.bg-glow-purple {
    background-image: var(--gradient-glow-purple);
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 60%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* ================= AUTH WRAPPER ================= */
.auth-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo Design */
.logo-container {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: inline-block;
    user-select: none;
}

.logo-sni {
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-code {
    color: var(--text-primary);
    position: relative;
}

.logo-dot {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
    letter-spacing: 0.2px;
}

/* ================= AUTH CARD CONTAINER ================= */
.auth-card-container {
    width: 100%;
    perspective: 1000px;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    width: 100%;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
}

/* Glowing Border Sweep Effect */
.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.3) 0%, rgba(225, 0, 255, 0) 40%, rgba(0, 242, 254, 0) 60%, rgba(127, 0, 255, 0.3) 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;
    z-index: 2;
}

/* Inner Slider container (enables sliding form pages) */
.card-inner-slider {
    display: flex;
    width: 200%; /* Holds two forms side-by-side */
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.form-section {
    width: 50%; /* Each form is exactly half the slider width */
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.form-header {
    margin-bottom: 28px;
    text-align: center;
}

.form-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.form-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ================= INPUT GROUP STYLING ================= */
.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.forgot-password-link {
    font-size: 0.78rem;
    color: var(--blue);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.forgot-password-link:hover {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 13px 16px 13px 44px; /* Space for the icon */
    font-family: var(--font-ui);
    font-size: 0.92rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

/* Icon placement inside input */
.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Input states */
.input-wrapper input:focus {
    border-color: var(--blue);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.12),
                inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.input-wrapper input:focus + .input-icon {
    color: var(--cyan);
    filter: drop-shadow(0 0 4px rgba(0, 242, 254, 0.5));
}

/* Input validation states */
.input-wrapper.error input {
    border-color: var(--error);
    box-shadow: 0 0 0 3px var(--error-glow);
}

.input-wrapper.error .input-icon {
    color: var(--error);
}

.input-wrapper.success input {
    border-color: var(--success);
}

.input-wrapper.success .input-icon {
    color: var(--success);
}

/* Validation Tooltip message */
.validation-message {
    font-size: 0.76rem;
    color: var(--error);
    margin-top: 5px;
    min-height: 15px;
    display: block;
    transition: var(--transition-smooth);
}

/* Password eye toggle button */
.btn-toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--transition-smooth);
}

.btn-toggle-password:hover {
    color: var(--text-primary);
}

.btn-toggle-password svg {
    width: 18px;
    height: 18px;
}

.hidden {
    display: none !important;
}

/* ================= PASSWORD STRENGTH METER ================= */
.password-strength-meter {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength-meter.visible {
    opacity: 1;
    max-height: 40px;
}

.meter-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.meter-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.meter-text {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ================= REMEMBER ME & OTHER CHECKBOXES ================= */
.remember-row {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 18px;
    width: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container .checkmark::after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ================= NOT A ROBOT WIDGET ================= */
.captcha-widget-container {
    margin-bottom: 24px;
}

.captcha-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.captcha-box:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.captcha-box.verified {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.03);
    box-shadow: 0 0 15px var(--success-glow);
}

.captcha-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Clickable verification checkbox inside CAPTCHA box */
.checkbox-interactive {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.checkbox-interactive:hover {
    border-color: var(--blue);
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.3);
}

.captcha-box.verified .checkbox-interactive {
    border-color: var(--success);
    background: var(--success);
}

.checkbox-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.checkmark-icon {
    width: 16px;
    height: 16px;
    color: #fff;
    stroke-dasharray: 24;
    stroke-dashoffset: 0;
    animation: drawCheckmark 0.35s ease forwards;
}

@keyframes drawCheckmark {
    from { stroke-dashoffset: 24; }
    to { stroke-dashoffset: 0; }
}

.captcha-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    user-select: none;
}

.captcha-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.shield-icon {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.captcha-box:hover .shield-icon {
    color: var(--blue);
    filter: drop-shadow(0 0 4px rgba(79, 172, 254, 0.4));
}

.captcha-box.verified .shield-icon {
    color: var(--success);
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.4));
}

/* ================= SUBMIT BUTTON ================= */
.btn-submit {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
}

.btn-register {
    background: var(--gradient-accent);
    box-shadow: 0 4px 15px rgba(225, 0, 255, 0.2);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 24px rgba(79, 172, 254, 0.35);
    filter: brightness(1.1);
}

.btn-register:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(225, 0, 255, 0.35);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0.5px);
}

.btn-submit:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    border: 1px solid var(--border-color);
}

/* Spinner inside button */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= DIVIDER & SOCIAL LOGINS ================= */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    width: 100%;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 12px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.social-login {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

.btn-social {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 11px 16px;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

.btn-social svg {
    width: 18px;
    height: 18px;
}

/* ================= SWITCH FORM PROMPTS ================= */
.switch-form-prompt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 10px;
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--cyan);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0 4px;
    transition: var(--transition-smooth);
}

.btn-text-link:hover {
    color: var(--blue);
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(0, 242, 254, 0.3);
}

#registerSection .btn-text-link {
    color: var(--pink);
}

#registerSection .btn-text-link:hover {
    color: var(--purple);
    text-shadow: 0 0 6px rgba(225, 0, 255, 0.3);
}

/* ================= CAPTCHA MODAL DESIGN ================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 4, 6, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card-opaque);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    width: 95%;
    max-width: 480px;
    padding: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.modal-backdrop.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-shield-icon {
    width: 18px;
    height: 18px;
    color: var(--blue);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.btn-close-modal:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-close-modal svg {
    width: 18px;
    height: 18px;
}

.modal-instruction {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Canvas Area Container */
.puzzle-area {
    width: 280px;
    height: 155px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #08080a;
    border: 1px solid var(--border-color);
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

#puzzleBg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

#puzzlePiece {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
}

/* Captcha Status Overlay */
.puzzle-hud {
    position: absolute;
    inset: 0;
    background: rgba(16, 185, 129, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(2px);
    animation: overlayFadeIn 0.3s ease forwards;
}

.puzzle-hud.failed {
    background: rgba(239, 68, 68, 0.95);
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================= SLIDER TRACK CONTROLS ================= */
.slider-container {
    margin: 20px 0 16px 0;
    width: 100%;
}

.slider-track {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(79, 172, 254, 0.12);
    border-right: 1px solid var(--blue);
    pointer-events: none;
    transition: background-color 0.3s ease;
}

/* Slider Thumb Handle */
.slider-thumb {
    position: absolute;
    left: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.slider-thumb:hover {
    background: #fff;
    transform: scale(1.05);
}

.slider-thumb:active {
    cursor: grabbing;
    background: var(--blue);
    color: #fff;
}

.thumb-arrows {
    width: 18px;
    height: 18px;
    color: #1c1917;
    transition: var(--transition-smooth);
}

.slider-thumb:active .thumb-arrows {
    color: #fff;
    transform: scale(1.1);
}

.slider-prompt {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
    user-select: none;
    z-index: 15;
    transition: opacity 0.2s ease;
}

/* Captcha modal footer */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: 4px;
}

.btn-tool {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.btn-tool:hover {
    color: var(--text-primary);
}

.btn-tool svg {
    width: 13px;
    height: 13px;
}

.system-status {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ================= CONFETTI CANVAS ================= */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    display: block;
}

/* ================= RESPONSIVE STYLES — Login / Auth Pages ================= */

/* Tablet: 768px – 1024px */
@media (max-width: 1024px) {
    .auth-wrapper {
        max-width: 460px;
        padding: 20px;
    }
    .form-section { padding: 34px 32px; }
    .form-header h2 { font-size: 1.48rem; }
}

/* Mobile: up to 768px */
@media (max-width: 768px) {
    body { align-items: flex-start; padding-top: 24px; }

    .auth-wrapper {
        padding: 16px;
        max-width: 100%;
        justify-content: flex-start;
        min-height: 100vh;
    }

    .logo-container { margin-bottom: 22px; }
    .logo { font-size: 1.9rem; }

    .form-section { padding: 30px 22px; }
    .form-header { margin-bottom: 22px; }
    .form-header h2 { font-size: 1.4rem; }

    .social-login {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }
    .btn-social { width: 100%; padding: 12px; }

    /* Banned alert — make it readable on narrow screens */
    .banned-alert-box { flex-direction: column; gap: 12px; }

    /* Session banner — shrink and center on mobile */
    .session-banner {
        top: 12px;
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
    }
}

/* Small mobile: up to 480px */
@media (max-width: 480px) {
    .auth-wrapper { padding: 12px; }
    .logo { font-size: 1.7rem; }
    .logo-container { margin-bottom: 18px; }
    .form-section { padding: 24px 16px; }
    .form-header h2 { font-size: 1.25rem; }
    .form-header { margin-bottom: 18px; }
    .input-group { margin-bottom: 16px; }
    .btn-primary { padding: 13px; font-size: 0.88rem; }
    .social-login { flex-direction: column; gap: 8px; margin-bottom: 18px; }
    .btn-social { width: 100%; padding: 12px; }
}

/* Very small: 360px and below */
@media (max-width: 360px) {
    .logo { font-size: 1.5rem; }
    .form-section { padding: 20px 14px; }
    .form-header h2 { font-size: 1.15rem; }
}

/* ================= SESSION BANNER ================= */
.session-banner {
    position: absolute;
    top: 24px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 10px 18px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    max-width: calc(100% - 48px);
    width: 380px;
    display: flex;
    justify-content: center;
    animation: slideDown 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.session-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    width: 100%;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.session-banner-content p {
    flex-grow: 1;
    margin: 0;
}

.btn-logout-banner {
    color: var(--error);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    transition: var(--transition-smooth);
}

.btn-logout-banner:hover {
    background: var(--error);
    color: #fff;
    box-shadow: 0 0 10px var(--error-glow);
}

/* Recovery Code Input Field Styling */
.recovery-code-input {
    font-family: var(--font-mono) !important;
    text-transform: uppercase !important;
    text-align: center !important;
    letter-spacing: 1.5px !important;
    color: var(--cyan) !important;
    font-weight: 600 !important;
    border-color: rgba(0, 242, 254, 0.2) !important;
    background: rgba(0, 242, 254, 0.02) !important;
}

.recovery-code-input:focus {
    border-color: var(--cyan) !important;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.25) !important;
    background: rgba(0, 242, 254, 0.04) !important;
}

@keyframes pulseGlowCyan {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 242, 254, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

/* ================= GLOBAL SELECT / DROPDOWN DARK THEME ================= */
select {
    background: rgba(12, 12, 18, 0.92) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    font-family: var(--font-ui, 'Inter', sans-serif);
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300f2fe' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 32px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:hover {
    border-color: rgba(0, 242, 254, 0.3) !important;
}

select:focus {
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.1) !important;
}

select option {
    background: #0d0d14 !important;
    color: #e2e8f0 !important;
    font-size: 0.82rem;
    padding: 8px 12px;
}

select option:checked,
select option:hover {
    background: #0a1a1f !important;
    color: #00f2fe !important;
}

/* ================= GLOBAL BROADCAST NOTICE — CENTRED TEXT ================= */
.global-notice-box {
    justify-content: center !important;
}

#globalNotificationText {
    text-align: center !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    flex: 1;
}

