/* ============================================
   ADO/Jira AI Assistant - Landing Page Styles
   Glassmorphic Design with Animated Preview
   ============================================ */

/* === Reset and Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0D1117;
    --bg-secondary: #161B22;
    --bg-tertiary: #1F2937;
    --bg-card: rgba(31, 41, 55, 0.6);

    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-tertiary: #6B7280;

    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --accent-cyan: #06B6D4;
    --accent-green: #10B981;

    --border-color: rgba(75, 85, 99, 0.5);
    --border-focus: rgba(59, 130, 246, 0.5);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

/* === Main Authentication Container === */
.auth-container {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* === Animated Preview Section (Left 60%) === */
.animated-preview {
    position: relative;
    width: 60%;
    height: 100vh;
    background: linear-gradient(135deg, #111827 0%, #1F2937 50%, #111827 100%);
    overflow: hidden;
}

/* AJAIA Background Image with Glow Effect - Full Coverage */
.animated-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('AJAIA_branding_homepage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.4))
            drop-shadow(0 0 80px rgba(139, 92, 246, 0.3));
    animation: brandBackgroundGlow 4s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes brandBackgroundGlow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3))
                drop-shadow(0 0 60px rgba(139, 92, 246, 0.2));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(139, 92, 246, 0.5))
                drop-shadow(0 0 100px rgba(59, 130, 246, 0.4));
        transform: scale(1.02);
    }
}

/* Dark overlay to keep floating elements visible */
.animated-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.5) 0%, rgba(31, 41, 55, 0.5) 50%, rgba(17, 24, 39, 0.5) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Grid Background */
.grid-background {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
    z-index: 3;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* Floating Particles */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* SVG Connections */
.connections-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.connection-line {
    stroke: url(#connectionGradient);
    stroke-width: 1;
    stroke-dasharray: 5, 5;
    animation: dashMove 20s linear infinite;
}

@keyframes dashMove {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 200; }
}

/* Agent Orbs */
.agent-orbs {
    position: absolute;
    inset: 0;
    z-index: 6;
}

.agent-orb {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 2px;
    animation: orbPulse 2s ease-in-out infinite;
}

.agent-orb-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.agent-orb-active .agent-orb-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: var(--accent-green);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    animation: indicatorPulse 1.5s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes indicatorPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Code Snippets */
.code-snippets {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.code-snippet {
    position: absolute;
    padding: 12px 16px;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 8px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    animation: snippetFloat 0.8s ease-out;
}

@keyframes snippetFloat {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to { opacity: 0.9; transform: translateY(0) scale(1); }
}

.code-snippet-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.code-snippet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.code-snippet-text {
    color: white;
    margin-top: 4px;
}

/* Bottom Right Branding - positioned relative to agent-orbs */
.top-brand {
    position: absolute;
    bottom: 20px;
    right: 20px;
    text-align: right;
    animation: brandPulse 4s ease-in-out infinite;
    z-index: 7;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@keyframes brandPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.brand-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.brand-icon-left {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
}

.brand-icon-right {
    background: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
}

.brand-arrow {
    font-size: 24px;
    color: var(--accent-blue);
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 50%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.brand-tagline {
    color: var(--text-secondary);
    font-size: 12px;
    max-width: 200px;
    line-height: 1.3;
}

/* Floating Stats */
.floating-stat {
    position: absolute;
    padding: 16px 20px;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    animation: statFloat 3s ease-in-out infinite;
    z-index: 8;
}

.floating-stat-1 {
    top: 32px;
    left: 32px;
    animation-delay: 1s;
}

.floating-stat-2 {
    top: 32px;
    right: 32px;
    animation-delay: 2s;
}

.floating-stat-3 {
    bottom: 32px;
    left: 32px;
    animation-delay: 0.5s;
}

@keyframes statFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.floating-stat-1 .stat-value { color: var(--accent-green); }
.floating-stat-2 .stat-value { color: var(--accent-blue); }
.floating-stat-3 .stat-value { color: var(--accent-purple); }

/* Help Button */
.help-button {
    position: absolute;
    bottom: 32px;
    left: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    animation: helpButtonPulse 2s ease-out infinite;
    transition: transform 0.2s;
    z-index: 10;
}

.help-button:hover {
    transform: scale(1.1);
}

@keyframes helpButtonPulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Help Tooltip */
.help-tooltip {
    position: absolute;
    bottom: 100px;
    left: 32px;
    max-width: 320px;
    padding: 16px;
    background: rgba(31, 41, 55, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 16px;
    color: white;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 20;
}

.help-tooltip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.help-tooltip-content {
    display: flex;
    gap: 12px;
}

.help-tooltip-icon {
    font-size: 20px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.help-tooltip .help-tooltip-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.help-tooltip p:not(.help-tooltip-title) {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.help-demo {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(75, 85, 99, 0.5);
    font-size: 12px;
    color: var(--text-tertiary);
}

.help-demo strong {
    color: var(--accent-blue);
}

/* === Authentication Form Section (Right 40%) === */
.auth-form-container {
    position: relative;
    width: 40%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

/* Background Pattern */
.auth-background-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 30px 30px;
}

/* Authentication Card */
.auth-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 40px;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 24px;
    box-shadow: var(--shadow-2xl);
    z-index: 10;
    animation: cardSlideIn 0.5s ease-out;
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Form Styles */
.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

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

/* Error Message */
.error-message {
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #FCA5A5;
    font-size: 14px;
    margin-bottom: 16px;
    animation: errorSlideIn 0.3s ease-out;
}

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

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.forgot-link {
    font-size: 14px;
    color: var(--accent-purple);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--accent-cyan);
}

/* Primary Button */
.btn-primary {
    position: relative;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 16px;
}

.btn-loader {
    position: absolute;
    right: 24px;
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: rgba(31, 41, 55, 0.6);
    color: var(--text-tertiary);
    font-size: 14px;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.oauth-btn {
    width: 100%;
    padding: 12px 24px;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.oauth-btn:hover {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(75, 85, 99, 0.8);
}

.oauth-btn i {
    font-size: 18px;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
}

.auth-switch-text {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-right: 4px;
}

.auth-switch-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.auth-switch-btn:hover {
    color: var(--accent-cyan);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .animated-preview {
        width: 50%;
    }

    .auth-form-container {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .animated-preview {
        width: 100%;
        height: 40vh;
    }

    .auth-form-container {
        width: 100%;
        height: 60vh;
        padding: 16px;
    }

    .auth-card {
        padding: 24px;
    }

    .floating-stat {
        font-size: 12px;
        padding: 12px 16px;
    }

    .stat-value {
        font-size: 20px;
    }

    .brand-title {
        font-size: 20px;
    }
}

/* === Animation Classes === */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* === MFA Modal Styles === */
.mfa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.mfa-modal {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.98));
    border: 1px solid rgba(75, 85, 99, 0.4);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: slideUp 0.3s ease-out;
}

.mfa-modal-header {
    text-align: center;
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.mfa-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: white;
}

.mfa-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.mfa-modal-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.mfa-modal-body {
    padding: 24px 32px;
}

.mfa-code-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.mfa-code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    background: rgba(31, 41, 55, 0.6);
    border: 2px solid rgba(75, 85, 99, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

.mfa-code-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(31, 41, 55, 0.8);
}

.mfa-code-input.error {
    border-color: #EF4444;
    animation: shake 0.4s ease-in-out;
}

.mfa-code-separator {
    color: var(--text-tertiary);
    font-size: 24px;
    font-weight: 300;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.mfa-error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: #F87171;
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
}

.mfa-trust-device {
    margin-bottom: 20px;
}

.mfa-trust-device .checkbox-label {
    font-size: 14px;
}

.mfa-verify-btn {
    width: 100%;
}

.mfa-backup-link {
    text-align: center;
    margin-top: 16px;
}

.mfa-backup-link a {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.mfa-backup-link a:hover {
    color: var(--accent-blue);
}

.mfa-modal-footer {
    padding: 16px 32px 24px;
    text-align: center;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
}

.mfa-cancel-btn {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s;
}

.mfa-cancel-btn:hover {
    color: var(--text-secondary);
}

/* MFA Backup Code Input Mode */
.mfa-backup-input-container {
    margin-bottom: 20px;
}

.mfa-backup-input {
    width: 100%;
    padding: 16px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    letter-spacing: 4px;
    background: rgba(31, 41, 55, 0.6);
    border: 2px solid rgba(75, 85, 99, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

.mfa-backup-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.mfa-backup-input::placeholder {
    color: var(--text-tertiary);
    letter-spacing: normal;
    font-size: 14px;
}

/* ========================================
   Register Mode Toggle (New/Join Organization)
   ======================================== */

.register-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: rgba(31, 41, 55, 0.4);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.register-mode-toggle .mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.register-mode-toggle .mode-btn:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
}

.register-mode-toggle .mode-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.register-mode-toggle .mode-btn i {
    font-size: 14px;
}

/* Invite Code Group */
.invite-code-group {
    animation: slideDown 0.3s ease-out;
}

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

.invite-code-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.invite-code-hint i {
    color: var(--accent-blue);
}

/* Rate Limit Warning */
.rate-limit-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: #FCD34D;
    font-size: 13px;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease-out;
}

.rate-limit-warning i {
    color: #F59E0B;
    font-size: 16px;
}

/* Email Invite Token Display */
.email-invite-token-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #6EE7B7;
    font-size: 13px;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease-out;
}

.email-invite-token-display i {
    color: var(--accent-green);
    font-size: 18px;
}

.email-invite-token-display strong {
    color: #10B981;
}

