/* =========================================================
   INDEXENT - LOGIN / SIGNUP / RESET / CONTACT
   Light theme, matched to the homepage and dashboard.
   Markup unchanged.
========================================================= */

:root {
    --purple: #6D3FD8;
    --purple-hover: #5B33C9;
    --purple-soft: #F3F0FB;
    --ring: 0 0 0 3px #ECE6FB;

    --bg: #F6F5F2;
    --card: #FFFFFF;

    --text: #1D1C1A;
    --muted: #6B6A65;
    --faint: #8A8983;

    --line: #E3E1DC;
    --line2: #EEEDE9;

    --success: #2E9E5B;
    --error: #B4232A;

    --font-body: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html {
    scrollbar-width: thin;
    scrollbar-color: #D6D4CF transparent;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: #D6D4CF; border-radius: 4px; }

::selection {
    background: var(--purple);
    color: #fff;
}

body {
    min-height: 100vh;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(640px 640px at 8% -6%, rgba(109, 63, 216, .10), transparent 64%),
        radial-gradient(760px 540px at 100% 106%, rgba(193, 63, 214, .06), transparent 68%),
        var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ---------- CARD ---------- */
.container {
    width: 400px;
    background: var(--card);
    border-radius: 10px;
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
    padding: 0 28px;
    box-shadow:
        0 1px 2px rgba(29, 28, 26, .04),
        0 24px 56px rgba(29, 28, 26, .08);
}

/* header strip */
.container::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 64px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line2);
}

/* brand mark */
.container::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 18px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--purple);
    z-index: 2;
}

.logo-box,
.logo-boxORG {
    display: none;
}

/* ---------- HEADINGS ---------- */
h1 {
    position: relative;
    z-index: 3;
    height: 64px;
    display: flex;
    align-items: center;
    padding-left: 38px;
    margin: 0 0 24px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
}

.description,
p {
    font-size: 14px !important;
    line-height: 1.6;
    color: var(--muted) !important;
    margin: 0 0 6px;
}

.description::after {
    content: '\25CF  Live \2014  scoring inbound leads';
    display: block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

/* ---------- FIELDS ---------- */
.form-group {
    padding: 0;
    margin-top: 16px;
}

.form-group:first-of-type {
    margin-top: 22px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
}

.input-field {
    width: 100% !important;
    height: 40px !important;
    border: 1px solid var(--line) !important;
    border-radius: 6px !important;
    background: #FFFFFF !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    font-family: var(--font-body) !important;
    color: var(--text) !important;
    outline: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.input-field:hover {
    border-color: #D6D4CF !important;
}

.input-field:focus {
    border-color: var(--purple) !important;
    box-shadow: var(--ring);
}

.input-field::placeholder {
    color: var(--faint);
    opacity: 1;
}

/* stop Chrome autofill from repainting the field */
.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text) !important;
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    caret-color: var(--text);
}

select.input-field {
    cursor: pointer;
    padding-right: 32px !important;
    -webkit-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%) !important;
    background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50% !important;
    background-size: 5px 5px, 5px 5px !important;
    background-repeat: no-repeat !important;
}

.textarea-field {
    height: 120px !important;
    padding: 10px 12px !important;
    line-height: 1.5;
    resize: vertical;
}

/* ---------- PRIMARY BUTTON ---------- */
.btn-login {
    width: 100%;
    margin: 22px 0 0;
    height: 40px;
    border: none;
    border-radius: 6px;
    background: var(--purple);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.btn-login:hover {
    background: var(--purple-hover);
}

.btn-login:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.btn-login[disabled] {
    background: #A992E6;
    cursor: default;
}

/* ---------- ERROR ---------- */
.error-msg {
    display: block;
    min-height: 18px;
    margin-top: 10px;
    text-align: center;
    color: var(--error);
    font-size: 13px;
    font-weight: 500;
}

/* ---------- DIVIDER ---------- */
.divider {
    display: flex;
    align-items: center;
    margin: 22px 0 14px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line2);
}

.divider::before { margin-right: 12px; }
.divider::after  { margin-left: 12px; }

/* ---------- SECONDARY ACTIONS ---------- */
.admin-actions {
    padding: 0;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.admin-actions-void {
    padding: 0;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.btn-action,
.btn-action-long {
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    text-decoration: none;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn-action-long {
    width: 100% !important;
}

.btn-action:hover,
.btn-action-long:hover {
    background: var(--purple-soft);
    border-color: #D9CFF5;
    color: var(--purple);
}

.btn-action:focus-visible,
.btn-action-long:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

/* ---------- FOOTER ---------- */
footer {
    margin: 24px -28px 0;
    padding: 16px 28px 18px;
    border-top: 1px solid var(--line2);
    background: #FBFAF8;
    text-align: center;
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--faint);
}

footer strong {
    color: var(--muted);
    font-weight: 600;
}

/* ---------- MOBILE ---------- */
@media (max-width: 480px) {
    body { padding: 24px 14px; }

    .container {
        width: 100%;
        padding: 0 20px;
    }

    footer {
        margin: 24px -20px 0;
        padding: 16px 20px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
