:root {
    --pr-success: #107c10;
    --pr-danger: #d13438;
    --pr-danger-muted: rgba(209, 52, 56, 0.08);
    --pr-blue-light: #60a5fa;
    --pr-border: #334155;
    --pr-text: #f8fafc;
    --pr-text-muted: #cbd5e1;
    --pr-text-faint: #94a3b8;
}

.content {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    width: 35%;
    height: 100vh;
    background: #0d1117;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: 15px 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 0 1px 1px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Field label ─────────────────────────── */
body .content .spark-field-label,
body .content .input-label {
    display: block;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important; /* Muted slate */
    margin-bottom: 8px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

/* ── Input wrapper with icon ─────────────── */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

/* NUCLEAR OVERRIDE: body .content input... to defeat global white background */
body .content input:not([type="submit"]):not([type="button"]):not([type="checkbox"]),
body .content .input-wrapper input:not([type="submit"]),
body .content .spark-input,
#email-input.spark-input {
    width: 100% !important;
    height: 42px !important;
    padding: 0 0.875rem !important;
    padding-left: 2.75rem !important;
    padding-right: 1rem !important;
    border: 1px solid #334155 !important;
    border-radius: 3px !important;
    font-size: 0.9375rem !important;
    color: #e2e8f0 !important;
    background: #1e293b !important;
    background-color: #1e293b !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    box-shadow: none !important;
    line-height: normal !important;
    caret-color: #60a5fa !important;
}

/* Force dark background even on browser autofill */
body .content input:-webkit-autofill,
body .content input:-webkit-autofill:hover,
body .content input:-webkit-autofill:focus,
body .content input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1e293b inset !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    caret-color: #60a5fa !important;
    border-color: #334155 !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

body .content .input-wrapper input:focus {
    outline: none !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.25) !important;
}

body .content .input-wrapper input::placeholder {
    color: #4a5568 !important;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.9rem;
    z-index: 5;
    pointer-events: none;
}

/* ── Header overrides ────────────────────── */
.login-form-container .header {
    margin-bottom: 2.5rem;
}

.login-form-container .spark-spark-accent {
    color: #60a5fa;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.login-form-container .header h1 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
}

.login-form-container .description {
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* ── Input container spacing ─────────────── */
.input-container {
    margin-bottom: 24px;
}

.back-to-login {
    text-align: center;
    margin-top: 2rem;
}

.back-to-login a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.back-to-login a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.back-to-login a i {
    font-size: 0.8rem;
}

/* ── Success message ─────────────────────── */
.success-message {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-left: 3px solid var(--pr-success);
    border-radius: 2px;
    padding: 1.25rem 1rem;
    text-align: center;
    margin: 1.25rem 0;
}

.success-icon {
    width: 44px;
    height: 44px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.875rem auto;
}

.success-icon i {
    font-size: 1.125rem;
    color: var(--pr-success);
}

.success-text {
    color: var(--pr-text);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 0.375rem 0;
    line-height: 1.5;
}

.success-hint {
    color: var(--pr-text-muted);
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.4;
}

/* ── Error message box ───────────────────── */
.error-box {
    background: var(--pr-danger-muted);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-left: 3px solid var(--pr-danger);
    border-radius: 2px;
    padding: 1.25rem 1rem;
    text-align: center;
    margin: 1.25rem 0;
}

.error-icon {
    width: 44px;
    height: 44px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.875rem auto;
}

.error-icon i {
    font-size: 1.125rem;
    color: var(--pr-danger);
}

.error-text {
    color: var(--pr-text);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 0.375rem 0;
    line-height: 1.5;
}

.error-hint {
    color: var(--pr-text-muted);
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.4;
}

/* ── Info box ────────────────────────────── */
.info-box {
    background: rgba(96, 165, 250, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-left: 3px solid var(--pr-blue-light);
    border-radius: 2px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 1rem 0;
}

.info-box i {
    color: var(--pr-blue-light);
    font-size: 0.8125rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.info-box span {
    color: var(--pr-text-muted);
    font-size: 0.8125rem;
    line-height: 1.45;
}

/* ── Password requirements ───────────────── */
.password-requirements {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--pr-border);
    border-radius: 2px;
    padding: 0.75rem 1rem;
    margin-bottom: 16px;
}

.requirements-title {
    color: var(--pr-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.requirements-title i {
    color: var(--pr-blue-light);
    font-size: 0.75rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    color: var(--pr-text-faint);
    font-size: 0.8125rem;
    padding: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.requirements-list li i {
    font-size: 0.375rem;
    color: var(--pr-border);
    transition: color 0.15s ease;
}

.requirements-list li.valid {
    color: var(--pr-success);
}

.requirements-list li.valid i {
    color: var(--pr-success);
}

/* ── Footer ──────────────────────────────── */
.login-form-container .footer {
    font-size: 0.75rem;
    color: var(--pr-text-faint);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pr-border);
    background: transparent;
}

/* ── Mobile ──────────────────────────────── */
@media screen and (max-width: 767px) {
    .success-message,
    .error-box {
        padding: 1rem;
    }

    .input-wrapper input {
        height: 40px;
    }

    .password-requirements {
        padding: 0.625rem 0.875rem;
    }

    .info-box {
        padding: 0.625rem 0.875rem;
    }
}
