/* 
    Binspot Account - Login Page (Dark Theme)
    File: login.css
    Theme: Dark
*/

:root, html[htx-dark-mode] {
    --bsp-bg: #090d16;
    --bsp-bg-gradient: radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.15), transparent 70%),
                       radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.11), transparent 60%),
                       radial-gradient(circle at 15% 65%, rgba(16, 185, 129, 0.07), transparent 50%);
    --bsp-surface: rgba(15, 23, 42, 0.78);
    --bsp-surface-card: rgba(15, 23, 42, 0.84);
    --bsp-surface-subtle: rgba(30, 41, 59, 0.65);
    --bsp-surface-hover: rgba(51, 65, 85, 0.8);
    --bsp-border: rgba(255, 255, 255, 0.09);
    --bsp-border-hover: rgba(59, 130, 246, 0.45);
    
    --bsp-text-primary: #f8fafc;
    --bsp-text-secondary: #94a3b8;
    --bsp-text-muted: #64748b;
    --bsp-text-subtle: #475569;
    
    --bsp-input-bg: rgba(15, 23, 42, 0.75);
    --bsp-input-border: rgba(255, 255, 255, 0.12);
    --bsp-input-focus: #3b82f6;
    --bsp-input-ring: rgba(59, 130, 246, 0.28);
    --bsp-input-placeholder: #64748b;
    
    --bsp-primary: #3b82f6;
    --bsp-primary-hover: #60a5fa;
    --bsp-primary-glow: rgba(59, 130, 246, 0.38);
    --bsp-primary-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --bsp-primary-gradient-hover: linear-gradient(135deg, #2563eb, #7c3aed);
    
    --bsp-accent: #8b5cf6;
    --bsp-error: #f87171;
    --bsp-error-bg: rgba(239, 68, 68, 0.12);
    --bsp-error-border: rgba(239, 68, 68, 0.45);
    
    --bsp-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --bsp-shadow-toast: 0 20px 35px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
    --bsp-color-scheme: dark;

    /* Legacy compatibility variables */
    --primary: var(--bsp-primary);
    --accent: var(--bsp-accent);
    --bg-dark: var(--bsp-bg);
    --error: var(--bsp-error);
}

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
    color-scheme: var(--bsp-color-scheme);
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bsp-bg);
    background-image: var(--bsp-bg-gradient);
    background-attachment: fixed;
    color: var(--bsp-text-primary);
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Page Layout Centering */
htx-page-content,
.htx-page-content,
[htx-page-content] {
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 32px 16px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Particle Canvas Background */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

/* Ambient Hero Mesh Glow */
.hero-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.12), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* Floating Top Bar (Theme & Home) */
.bsp-top-bar {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bsp-icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bsp-surface-card);
    border: 1px solid var(--bsp-border);
    border-radius: 12px;
    color: var(--bsp-text-secondary);
    font-size: 1.05rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bsp-icon-btn:hover {
    color: #ffffff;
    border-color: var(--bsp-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);
    background: rgba(30, 41, 59, 0.9);
}

.bsp-icon-btn:active {
    transform: translateY(0) scale(0.96);
}

/* Main Login Container */
.bsp-login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Brand Header */
.bsp-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #ffffff;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bsp-brand-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 28px -4px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.bsp-brand-title {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--bsp-text-primary);
    margin: 0;
    text-align: center;
}

.bsp-brand-subtitle {
    color: var(--bsp-text-secondary);
    font-size: 0.875rem;
    margin-top: 6px;
    text-align: center;
    max-width: 340px;
    line-height: 1.45;
}

/* AI Gradient Text */
.ai-gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glass Card */
.glass {
    background: var(--bsp-surface-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--bsp-border);
    border-radius: 28px;
    box-shadow: var(--bsp-shadow-card);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass:hover {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(59, 130, 246, 0.3);
}

/* Form Header */
.bsp-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bsp-border);
}

.bsp-form-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--bsp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.bsp-form-header-text h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bsp-text-primary);
}

.bsp-form-header-text p {
    margin: 3px 0 0;
    font-size: 0.775rem;
    color: var(--bsp-text-muted);
}

/* Active User Chip (When cookie exists) */
.bsp-active-user-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 18px;
    background: var(--bsp-surface-subtle);
    border: 1px solid var(--bsp-border);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.bsp-active-user-badge:hover {
    border-color: var(--bsp-primary-hover);
    background: rgba(30, 41, 59, 0.85);
}

.bsp-active-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bsp-active-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bsp-primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.bsp-active-user-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bsp-active-user-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--bsp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bsp-active-user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bsp-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bsp-active-user-switch-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bsp-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bsp-active-user-switch-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--bsp-primary-hover);
}

/* Quick Account Card */
.bsp-quick-account-card {
    background: var(--bsp-surface-subtle);
    border: 1px solid var(--bsp-border);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.bsp-quick-account-card:hover {
    border-color: var(--bsp-primary-hover);
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.bsp-quick-account-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bsp-quick-account-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bsp-primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.3);
}

.bsp-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #0f172a;
    border-radius: 50%;
    animation: bspPulse 2s infinite;
}

@keyframes bspPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.bsp-quick-account-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.bsp-quick-account-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--bsp-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}

.bsp-quick-account-title {
    margin: 2px 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bsp-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bsp-quick-account-sub {
    margin: 2px 0 0;
    font-size: 0.725rem;
    color: var(--bsp-text-muted);
}

.bsp-quick-account-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--bsp-border);
}

.bsp-quick-account-continue-btn {
    flex: 1;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bsp-primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.bsp-quick-account-continue-btn:hover {
    background: var(--bsp-primary-gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.4);
}

.bsp-quick-account-switch-btn {
    height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--bsp-text-secondary);
    border: 1px solid var(--bsp-border);
    border-radius: 10px;
    font-size: 0.775rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bsp-quick-account-switch-btn:hover {
    background: var(--bsp-surface-hover);
    color: var(--bsp-text-primary);
}

/* Mode Switcher Tabs */
.bsp-mode-switcher {
    display: flex;
    align-items: center;
    background: var(--bsp-surface-subtle);
    border: 1px solid var(--bsp-border);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}

.bsp-mode-btn {
    flex: 1;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    background: transparent;
    color: var(--bsp-text-muted);
    font-size: 0.775rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.bsp-mode-btn:hover {
    color: var(--bsp-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.bsp-mode-btn.active {
    background: rgba(30, 41, 59, 0.95);
    color: #60a5fa;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.bsp-live-hint {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--bsp-primary);
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.2s ease;
}

/* Valid check icon */
.bsp-valid-icon {
    position: absolute;
    right: 44px;
    color: #34d399;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    animation: fadeInScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

/* Phone Input Row */
.bsp-phone-input-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.bsp-country-code-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 96px;
    flex-shrink: 0;
}

.bsp-country-code-plus {
    position: absolute;
    left: 12px;
    color: var(--bsp-primary);
    font-weight: 700;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.bsp-country-code-input {
    width: 100%;
    height: 50px;
    padding: 0 8px 0 26px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--bsp-text-primary);
    background-color: var(--bsp-input-bg);
    border: 1.5px solid var(--bsp-input-border);
    border-radius: 14px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bsp-country-code-input:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.bsp-country-code-input:focus {
    border-color: var(--bsp-input-focus);
    box-shadow: 0 0 0 4px var(--bsp-input-ring);
    background-color: var(--bsp-input-bg);
}

.bsp-phone-number-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.bsp-phone-input {
    padding-left: 44px;
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.bsp-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bsp-text-secondary);
    margin-bottom: 7px;
    padding-left: 2px;
    transition: color 0.2s ease;
}

.input-group:focus-within .bsp-label {
    color: var(--bsp-primary);
}

.bsp-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bsp-input-icon {
    position: absolute;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bsp-text-subtle);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-group:focus-within .bsp-input-icon {
    color: var(--bsp-primary);
}

.bsp-input {
    width: 100%;
    height: 50px;
    padding: 0 42px 0 46px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--bsp-text-primary);
    background-color: var(--bsp-input-bg);
    border: 1.5px solid var(--bsp-input-border);
    border-radius: 14px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bsp-input::placeholder {
    color: var(--bsp-input-placeholder);
    opacity: 0.8;
}

.bsp-input:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.bsp-input:focus {
    border-color: var(--bsp-input-focus);
    box-shadow: 0 0 0 4px var(--bsp-input-ring);
    background-color: rgba(15, 23, 42, 0.95);
}

/* Clear Input Button */
.bsp-input-clear-btn {
    position: absolute;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--bsp-surface-subtle);
    color: var(--bsp-text-subtle);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bsp-input-clear-btn:hover {
    background: var(--bsp-surface-hover);
    color: #ffffff;
}

.bsp-input-clear-btn.visible {
    display: flex;
}

/* Input Error States */
.input-error {
    border-color: var(--bsp-error) !important;
    background-color: var(--bsp-error-bg) !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2) !important;
}

.bsp-error-msg {
    display: none;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    padding-left: 4px;
    color: var(--bsp-error);
    font-size: 0.75rem;
    font-weight: 600;
}

.bsp-error-msg.visible-error {
    display: flex;
}

/* Error Shake Animation */
.error-shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
    40%, 60% { transform: translate3d(5px, 0, 0); }
}

/* Submit Action Button */
.bsp-submit-btn-wrap {
    position: relative;
    padding-top: 8px;
}

.bsp-submit-btn-glow {
    position: absolute;
    inset: 8px 0 0 0;
    background: var(--bsp-primary-gradient);
    border-radius: 16px;
    filter: blur(14px);
    opacity: 0.4;
    transition: opacity 0.3s ease, filter 0.3s ease;
    z-index: 0;
}

.bsp-submit-btn-wrap:hover .bsp-submit-btn-glow {
    opacity: 0.7;
    filter: blur(18px);
}

.bsp-submit-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bsp-primary-gradient);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bsp-submit-btn:hover {
    background: var(--bsp-primary-gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -5px rgba(59, 130, 246, 0.55);
}

.bsp-submit-btn:active {
    transform: translateY(1px) scale(0.99);
}

.bsp-submit-btn:disabled,
.bsp-submit-btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner Icon */
.htx-ic-spinner {
    display: inline-block;
    animation: bspSpin 0.9s linear infinite;
}

@keyframes bspSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Divider */
.bsp-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0 18px;
}

.bsp-divider-line {
    flex-grow: 1;
    height: 1px;
    background: var(--bsp-border);
}

.bsp-divider-text {
    padding: 0 14px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bsp-text-subtle);
    background: transparent;
}

/* Quick Action Buttons (Home / Security / Help) */
.bsp-sso-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bsp-sso-btn {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bsp-surface-subtle);
    border: 1px solid var(--bsp-border);
    border-radius: 12px;
    color: var(--bsp-text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bsp-sso-btn:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--bsp-border-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.bsp-sso-btn:active {
    transform: translateY(0);
}

/* Footer Card (Sign Up Prompt) */
.bsp-footer-card {
    margin-top: 22px;
    padding: 14px 20px;
    background: var(--bsp-surface-card);
    border: 1px solid var(--bsp-border);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.3);
}

.bsp-footer-card p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--bsp-text-secondary);
}

.bsp-link {
    color: var(--bsp-primary-hover);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bsp-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Trust & Security Toast Badge */
#securityToast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 30;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bsp-toast-inner {
    background: var(--bsp-surface-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--bsp-shadow-toast);
}

.bsp-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    color: var(--bsp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.bsp-toast-title {
    margin: 0;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bsp-text-primary);
}

.bsp-toast-desc {
    margin: 2px 0 0;
    font-size: 0.6875rem;
    color: var(--bsp-text-muted);
}

/* Stagger Animation Utility */
.stagger-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden-el {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .bsp-top-bar {
        top: 14px;
        right: 14px;
    }

    .bsp-login-container {
        max-width: 100%;
        padding: 0 4px;
    }

    .glass {
        padding: 24px 20px !important;
        border-radius: 22px;
    }

    .bsp-brand-title {
        font-size: 1.4rem;
    }

    #securityToast {
        bottom: 12px;
        right: 12px;
        left: 12px;
    }

    .bsp-toast-inner {
        justify-content: center;
    }

    @media (max-width: 420px) {
        .bsp-mode-btn {
            font-size: 0.7rem;
            gap: 3px;
            padding: 0 2px;
        }
        .bsp-mode-btn i {
            font-size: 0.7rem;
        }
    }
}
