@font-face {
    font-family: Inter;
    src: url('./inter-regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: Inter;
    src: url('./inter-medium.ttf') format('truetype');
    font-weight: 500;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Inter, -apple-system, sans-serif;
    color: #efefef;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    -webkit-font-smoothing: antialiased;
}

.background-art {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: url('./reference-desktop.png') center / 100% 100% no-repeat;
    mask-image: linear-gradient(#000 27%, transparent 27% 73%, #000 73%), 
                linear-gradient(to right, #000 37%, transparent 37% 63%, #000 63%);
    z-index: -1;
}

.page-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1100px;
    background-color: #141416;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid #2a2a2d;
    z-index: 1;
}

.content-wrapper {
    display: flex;
    flex: 1;
    min-height: 700px; 
}

.left-panel {
    flex: 4.5;
    background: linear-gradient(135deg, #FA4616, #c22a00);
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 20px 0 0 20px;
}

.hero-text {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    text-align: center;
}

.right-panel-wrapper {
    flex: 5.5;
    display: flex;
    justify-content: center;
    background-color: #141416;
    border-radius: 0 20px 20px 0;
}

.right-panel {
    width: 100%;
    max-width: 600px;
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-logo { 
    margin-bottom: 30px; 
    display: flex;
    justify-content: center;
}
.brand-logo img { 
    height: 32px; 
    width: auto; 
    object-fit: contain; 
    filter: brightness(0) invert(1); 
}

.step-indicator {
    display: flex;
    align-items: center;
    margin: 0 auto 40px auto;
    width: 100%;
    max-width: 280px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: #2a2a2d;
    color: #888;
    flex: none;
}

.step-dot.completed {
    background: #34c759;
    color: #fff;
}

.step-dot.current {
    background: #FA4616;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(250, 70, 22, 0.2);
}

.step-line {
    flex: 1;
    height: 2px;
    background: #2a2a2d;
    margin: 0 12px;
}

.step-line.completed {
    background: #34c759;
}

.step-header { margin-bottom: 24px; text-align: center; }
.step-header h1 { font-size: 28px; font-weight: 700; margin-top: 8px; color: #efefef; }
.step-header p { color: #888; font-size: 15px; margin-top: 8px; line-height: 1.5; }

.cta-button {
    background-color: #2B4DF5;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
    width: 100%;
    box-shadow: 0 4px 15px rgba(43, 77, 245, 0.2);
}
.cta-button:hover { background-color: #1a36c4; }

.spinner-btn {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 750ms linear infinite;
}

textarea {
    width: 100%;
    height: 200px;
    background: #1a1a1c;
    border: 1px solid #2a2a2d;
    border-radius: 8px;
    padding: 16px;
    color: #efefef;
    font-family: inherit;
    font-size: 16px;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 24px;
}
textarea:focus { border-color: #2B4DF5; }

.verification-card { background: transparent; border: none; box-shadow: none; width: 100%; margin: 0; text-align: center; }
.verification-card h1 { text-align: center; font-size: 18px; font-weight: 600; margin-bottom: 24px; color: #efefef; line-height: 1.4; }

.error-message {
    margin: 0 auto 20px auto;
    width: 100%;
    background: #411e1b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: #efddda;
    font-size: 14px;
    font-weight: 500;
    min-height: 44px;
}
.error-message svg { flex: none; color: #f68472; }

.code-inputs {
    margin: 0 auto 20px auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    height: 56px;
}
.code-inputs input {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    flex: none;
    background: #111;
    border: 1px solid #3d3d3d;
    height: 56px;
    border-radius: 8px;
    color: #efefef;
    text-align: center;
    font-size: 24px;
    font-family: inherit;
    outline: none;
}
.code-inputs input:focus { border-color: #82b1ff; }

.resend {
    text-align: center;
    margin: 0 auto 20px auto;
    padding: 0;
    color: #82b1ff;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    /* Changed from block to inline-block to respect hidden attribute */
    display: inline-block; 
    font-family: inherit;
}
.resend:hover { color: #a5c7ff; }

.back-button { display: none !important; }
#preview-status { display: none !important; }

.loading-indicator {
    margin: 10px auto !important;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
}
.spinner {
    width: 28px; 
    height: 28px; 
    border: 3px solid #393939; 
    border-top-color: #82b1ff; 
    border-radius: 50%; 
    animation: spin 750ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Force hidden attribute to win */
[hidden] { display: none !important; }

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 64px;
    border-top: 1px solid #2a2a2d;
    background-color: #141416;
    font-size: 13px;
    color: #888;
}
.footer-left { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.footer-right { display: flex; gap: 24px; }
.footer-right a { color: #888; text-decoration: none; transition: color 0.2s; }
.footer-right a:hover { color: #efefef; }
.lang-select { background: transparent; color: #888; border: none; font-size: 13px; font-weight: 500; cursor: pointer; outline: none; font-family: inherit; }

/* SUCCESS MESSAGE STYLES */
#success-message {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease-out;
}

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

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(52, 199, 89, 0.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

#success-message h1 {
    font-size: 24px;
    font-weight: 700;
    color: #efefef;
    margin-bottom: 12px;
}

#success-message p {
    font-size: 15px;
    color: #888;
    line-height: 1.6;
    max-width: 80%;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 900px) {
    body { padding: 0; align-items: flex-start; background-color: #111; }
    .background-art { background-image: url('./reference-mobile.png'); mask-image: linear-gradient(#000 28%, transparent 28% 74%, #000 74%); }
    .page-container { border-radius: 0; border: none; min-height: 100vh; background-color: transparent; }
    
    .content-wrapper { flex-direction: column; min-height: auto; }
    
    .left-panel {
        flex: none;
        min-height: 200px;
        height: 200px;
        padding: 32px 24px;
        border-radius: 0 0 24px 24px;
        margin-bottom: 32px;
    }
    
    .right-panel-wrapper {
        flex: none;
        background-color: transparent;
        border-radius: 0;
    }
    
    .right-panel {
        padding: 0 24px 40px;
    }
    
    .hero-text { font-size: 28px; }
    
    .brand-logo { margin-bottom: 24px; }
    
    .step-indicator {
        margin: 0 auto 32px auto;
        justify-content: center;
    }
    
    .step-dot { width: 28px; height: 28px; font-size: 12px; }
    
    .verification-card h1 {
        text-align: center !important;
        margin-bottom: 32px !important;
    }

    .code-inputs {
        justify-content: center !important;
        margin-bottom: 24px !important;
        gap: 6px !important;
    }
    
    .code-inputs input {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 48px !important;
        font-size: 20px !important;
    }
    
    /* Changed from display: block !important to respect hidden */
    .resend {
        text-align: center !important;
        margin: 0 auto 24px auto !important;
    }
    
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
        border-top: 1px solid #2a2a2d;
        background-color: transparent;
    }
}