:root {
    --bg-color: #0f1115;
    --card-bg: #1e232d;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
}
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
.card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid #2d3748;
}
h1 { margin-top: 0; font-size: 1.5rem; }
p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.5rem;
    background-color: #0f1115;
    border: 1px solid #334155;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}
input:focus { outline: none; border-color: var(--accent); }
.captcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    min-height: 80px;
}
/* Cap Widget Dark Theme Custom Properties */
cap-widget {
    --cap-background: #1e232d;
    --cap-border-color: #334155;
    --cap-border-radius: 8px;
    --cap-color: #e2e8f0;
    --cap-checkbox-background: #0f1115;
    --cap-checkbox-border: 1px solid #334155;
    --cap-checkbox-border-radius: 4px;
    --cap-spinner-color: #3b82f6;
    --cap-spinner-background-color: #0f1115;
}
button#submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
button#submit-btn:disabled { background-color: #334155; cursor: not-allowed; }
button#submit-btn:hover:not(:disabled) { background-color: #2563eb; }
.hidden { display: none !important; }
.success-text {
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.error-box {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-align: left;
    word-break: break-word;
    max-height: 150px;
    overflow-y: auto;
}
