/* ============================================================
   Surehomz · Track Status — CSS-only redesign
   Palette
     --sh-primary    #0d95df   --sh-secondary  #14223b
     --sh-bg         #f5f8fc   --sh-success    #22c55e
     --sh-warning    #f59e0b   --sh-danger     #ef4444
   No HTML / Razor / JS / Bootstrap classes were changed.
   ============================================================ */

:root {
    --sh-primary: #0d95df;
    --sh-primary-dark: #0a78b5;
    --sh-secondary: #1a3c6b;
    --sh-secondary-dark: #1a3c6b;
    --sh-bg: #f5f8fc;
    --sh-success: #22c55e;
    --sh-warning: #f59e0b;
    --sh-danger: #ef4444;
    --sh-ink: #14223b;
    --sh-muted: #64748b;
    --sh-line: #e2e8f0;
    --sh-radius: 12px;
    --sh-shadow: 0 4px 24px rgba(20, 34, 59, .08);
    --sh-shadow-hover: 0 10px 32px rgba(20, 34, 59, .14);
    --sh-ease: .3s ease;
}

/* ---- Page background (track-status.css loads only on this page) ---- */
body.content {
    background: var(--sh-bg);
}

/* =========================== CARD =========================== */
.ts-card {
    max-width: 560px;
    width: 92%;
    margin: 100px auto 64px;
    background: #fff;
    border-radius: var(--sh-radius);
    box-shadow: var(--sh-shadow);
    padding: 36px 40px;
    box-sizing: border-box;
    transition: box-shadow var(--sh-ease), transform var(--sh-ease);
}

    .ts-card:hover {
        box-shadow: var(--sh-shadow-hover);
    }

/* ===================== TYPOGRAPHY ===================== */
.ts-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--sh-secondary);
    letter-spacing: -.2px;
    margin: 0 0 8px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ts-sub {
    font-size: 14px;
    color: var(--sh-muted);
    margin: 0 0 28px;
    line-height: 20px;
    overflow-wrap: anywhere;
}

/* ===================== FORM FIELDS ===================== */
.ts-form {
    display: block;
}

.ts-field {
    margin-bottom: 22px;
}

    .ts-field label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: var(--sh-secondary);
        margin-bottom: 8px;
    }

    /* matches both .ts-field input and the .ad-input class on the inputs */
    .ts-field input,
    .ts-field .ad-input {
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid var(--sh-line);
        border-radius: 10px;
        font-size: 15px;
        color: var(--sh-ink);
        background: #fff;
        box-sizing: border-box;
        transition: border-color var(--sh-ease), box-shadow var(--sh-ease), background var(--sh-ease);
    }

        .ts-field input::placeholder,
        .ts-field .ad-input::placeholder {
            color: #9aa6b6;
        }

        .ts-field input:hover,
        .ts-field .ad-input:hover {
            border-color: #c4d2e0;
        }

        .ts-field input:focus,
        .ts-field .ad-input:focus {
            outline: none;
            border-color: var(--sh-primary);
            box-shadow: 0 0 0 3px rgba(13, 149, 223, .15);
            background: #fff;
        }

        /* invalid state driven by jquery-validation's class swap (no markup change) */
        .ts-field input.input-validation-error,
        .ts-field .ad-input.input-validation-error {
            border-color: var(--sh-danger);
            box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
        }

/* ===================== CAPTCHA ROW ===================== */
#captchaImage {
    height: 50px;
    border: 1px solid var(--sh-line) !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: transform var(--sh-ease), box-shadow var(--sh-ease);
}

    #captchaImage:hover {
        transform: scale(1.02);
        box-shadow: 0 2px 10px rgba(20, 34, 59, .12);
    }

/* inline color on the link is overridden to brand primary */
#refreshCaptcha {
    color: var(--sh-primary) !important;
    font-size: 13px !important;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--sh-ease);
}

    #refreshCaptcha:hover {
        color: var(--sh-primary-dark) !important;
        text-decoration: underline;
    }

/* ===================== BUTTON ===================== */
.ts-btn {
    width: 100%;
    padding: 14px;
    background: var(--sh-secondary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
    cursor: pointer;
    margin-top: 4px;
    transition: background var(--sh-ease), transform var(--sh-ease), box-shadow var(--sh-ease);
}

    .ts-btn:hover {
        background: var(--sh-secondary-dark);
        box-shadow: 0 8px 20px rgba(20, 34, 59, .22);
        transform: translateY(-1px);
    }

    .ts-btn:active {
        transform: translateY(0);
        box-shadow: none;
    }

    .ts-btn:disabled {
        background: #94a3b8;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* ===================== MESSAGES ===================== */
.ts-error {
    color: var(--sh-danger);
    font-size: 12.5px;
    margin-top: 6px;
    display: block;
    overflow-wrap: anywhere;
}

.ts-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--sh-danger);
    border-radius: 10px;
    padding: 12px 16px;
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

/* ===================== BACK LINK ===================== */
.ts-back {
    display: inline-block;
    margin-top: 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sh-primary);
    text-decoration: none;
    transition: color var(--sh-ease);
}

    .ts-back:hover {
        color: var(--sh-primary-dark);
        text-decoration: underline;
    }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 600px) {
    .ts-card {
        margin: 64px auto 40px;
        padding: 26px 20px;
        width: 94%;
    }

    .ts-title {
        font-size: 20px;
    }

    .ts-sub {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .ts-field {
        margin-bottom: 18px;
    }

    /* keep captcha answer field full-width on small screens (overrides inline max-width) */
    #CaptchaAnswer {
        max-width: 100% !important;
    }
}
