:root {
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --brand-lime: #a3e635;
    --error-red: #f87171;
    --bg-right: #111827;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    overflow-x: hidden;
    background: var(--bg-right);
}

.split-left-panel {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    box-sizing: border-box;
    background: linear-gradient(-45deg, #022c22, #0597a8, #00bf38, #0f172a);
    background-size: 300% 300%;
    animation: waveShift 12s ease infinite;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes waveShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes automatedCardFlip {
    0%, 45%   { transform: rotateY(0deg); }       
    50%, 95%  { transform: rotateY(180deg); }     
    100%      { transform: rotateY(360deg); }
}

.left-content-wrapper {
    max-width: 440px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.knowledge-deck-logo {
    max-width: 260px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.hero-tagline {
    font-size: 1.35rem;
    font-weight: 400;
    color: #e2e8f0;
    margin: 0 0 48px 0;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: bolder;
}

.preview-card-container {
    width: 320px;
    height: 200px;
    perspective: 1000px;
}

.preview-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: automatedCardFlip 7s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}

@keyframes automatedCardFlip {
    0%, 40%   { transform: rotateY(0deg); }       
    50%, 90%  { transform: rotateY(180deg); }     
    100%      { transform: rotateY(360deg); }  
}

.preview-card-front, .preview-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-card-front {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
}

.preview-card-back {
    background: rgba(2, 44, 34, 0.8);
    backdrop-filter: blur(10px);
    transform: rotateY(180deg);
    border-color: rgba(163, 230, 53, 0.3);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

.success-badge {
    color: var(--brand-lime);
    background: rgba(163, 230, 53, 0.12);
}

.card-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 12px 0 0 0;
    color: #ffffff;
}

.answer-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-lime);
}

.split-right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-right);
    padding: 40px;
    box-sizing: border-box;
    position: relative;
}

.container {
    width: 100%;
    max-width: 380px;
    animation: fadeInForm 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.container h2 {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 28px 0;
    color: #ffffff;
}

input {
    width: 100%;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    color: #ffffff;
    box-sizing: border-box;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--brand-lime);
    background: #111827;
    box-shadow: 0 0 0 3px rgba(163, 230, 85, 0.15);
}

.row {
    position: relative;
    width: 100%;
}

.row input {
    padding-right: 48px;
}

.pw {
    position: absolute;
    right: 4px;
    top: 6px;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
}

.pw:hover {
    color: #ffffff;
}

#forgotPasswordLink {
    display: inline-block;
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    margin-top: -6px;
    margin-bottom: 18px;
    transition: color 0.2s;
}

#forgotPasswordLink:hover {
    color: var(--brand-lime);
    text-decoration: underline;
}

b {
    display: flex;
    align-items: center;
    color: #4b5563;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 24px 0;
}

b::before, b::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #27272a;
}
b::before { margin-right: 16px; }
b::after { margin-left: 16px; }

button:not(.pw):not(.logo-btn) {
    width: 100%;
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

#signup, #login {
    background: var(--brand-lime);
    color: #064e3b;
    margin-bottom: 12px;
}

#signup:hover, #login:hover {
    background: #bef264;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.15);
}

#showLogin, #showSignup {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #374151 !important;
}

#showLogin:hover, #showSignup:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: #4b5563 !important;
    color: #ffffff;
}

.logo-btn {
    width: 100%;
    height: 46px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.logo-btn:hover {
    background: #374151;
    border-color: #4b5563;
    color: #ffffff;
}

.logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.error {
    color: var(--error-red);
    font-size: 0.85rem;
    margin: -8px 0 14px 0;
    min-height: 18px;
}

#robotCheck {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

#robotCheck.show {
    display: flex;
}

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

.warningBox {
    background: #1f2937;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 420px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #374151;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.warningModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important; 
    padding: 20px;
    box-sizing: border-box;
}

.warningBox {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    animation: modalPopUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopUp {
    from { transform: scale(0.9) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.warningBox h2 {
    margin: 0 0 10px 0 !important;
    font-size: 1.35rem !important;
    font-weight: 700;
    text-align: center !important;
    color: #ffffff !important;
}

.warningBox p {
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.warningBox button:hover {
    background: #bef264;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.2);
}

@media (max-width: 900px) {
    body {
        flex-direction: column;
        background: var(--bg-right);
    }

    .split-left-panel {
        flex: none;
        padding: 60px 24px 40px 24px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .split-right-panel {
        flex: none;
        padding: 48px 24px;
    }

    .hero-tagline {
        margin-bottom: 32px;
    }

    .preview-card-container {
        width: 100%;
        max-width: 340px;
    }

    .warningBox {
        width: 85%;
        max-width: 360px;
    }

    .g-recaptcha {
        transform: scale(0.77);
    }
}

.scroll-down-indicator {
    display: none;
}

@media (max-width: 900px) {
    .scroll-down-indicator {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        cursor: pointer;
        z-index: 10;
        color: rgba(255, 255, 255, 0.8);
        transition: color 0.2s;
    }

    .scroll-down-indicator:hover {
        color: var(--brand-lime, #a3e635);
    }

    .arrow-text {
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .arrow-icon {
        font-size: 1.6rem;
        font-weight: bold;
        line-height: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        animation: arrowBounce 2s infinite;
    }
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.verificationModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999 !important; 
    padding: 20px;
    box-sizing: border-box;
}

.verificationBox {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 36px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
    animation: verifyPopUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes verifyPopUp {
    from { transform: scale(0.92) translateY(12px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.verificationBox h2 {
    margin: 0 0 16px 0 !important;
    font-size: 1.45rem !important;
    font-weight: 700;
    text-align: center !important;
    color: #ffffff !important;
}

.verificationBox p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 0 0 14px 0;
    line-height: 1.6;
}

.verificationBox p strong {
    color: var(--brand-lime, #a3e635);
    word-break: break-all;
}

.verificationBox p[style*="font-size: 0.9em"] {
    color: #94a3b8 !important; 
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 18px !important;
}

.verificationBox p[style*="font-weight: bold"] {
    color: var(--brand-lime, #a3e635) !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: textualPulse 1.8s ease-in-out infinite;
}

@keyframes textualPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-legal {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 16px;
    text-align: center;
    line-height: 1.4;
}

.recaptcha-legal a {
    color: var(--brand-lime);
    text-decoration: none;
}

.recaptcha-legal a:hover {
    text-decoration: underline;
}