:root {
    --taurus-bg: #080b12;
    --taurus-bg-soft: #0e131d;
    --taurus-panel: #f5f7fa;
    --taurus-card: #ffffff;
    --taurus-text: #111827;
    --taurus-muted: #697386;
    --taurus-border: #e4e8ee;
    --taurus-red: #e31b23;
    --taurus-red-dark: #bd1118;
    --taurus-red-soft: rgba(227, 27, 35, 0.10);
    --taurus-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.taurus-login-page {
    min-height: 100vh;
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    background: var(--taurus-panel);
    color: var(--taurus-text);
}

.taurus-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 46%) minmax(480px, 54%);
}

.taurus-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 52px 8%;
    overflow: hidden;
    color: var(--taurus-white);
    background:
        radial-gradient(circle at 78% 20%, rgba(227, 27, 35, 0.24), transparent 30%),
        radial-gradient(circle at 15% 90%, rgba(227, 27, 35, 0.12), transparent 30%),
        linear-gradient(145deg, #080b12 0%, #0d121c 55%, #111824 100%);
}

.taurus-login-brand::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -220px;
    bottom: -200px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.taurus-login-brand::after {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -320px;
    bottom: -300px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.taurus-brand-mark {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: var(--taurus-red);
    color: #fff;
    font-size: 27px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(227, 27, 35, 0.30);
}

.taurus-brand-copy {
    display: flex;
    flex-direction: column;
    margin-left: 62px;
    margin-top: -46px;
    min-height: 48px;
    justify-content: center;
}

.taurus-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.taurus-brand-subtitle {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.taurus-brand-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: auto 0;
}

.taurus-eyebrow,
.taurus-login-kicker {
    color: var(--taurus-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.taurus-brand-content h1 {
    margin: 18px 0 20px;
    max-width: 540px;
    font-size: clamp(42px, 4.3vw, 68px);
    line-height: 1.03;
    letter-spacing: -0.045em;
    font-weight: 750;
}

.taurus-brand-content h1 span {
    display: block;
    color: rgba(255, 255, 255, 0.56);
}

.taurus-brand-content p {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 15px;
    line-height: 1.75;
}

.taurus-brand-points {
    display: grid;
    gap: 13px;
    margin-top: 34px;
}

.taurus-brand-point {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.point-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(227, 27, 35, 0.15);
    color: #ff6870;
    font-size: 12px;
    font-weight: 800;
}

.taurus-brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, 0.30);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.taurus-login-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 8%;
    background:
        radial-gradient(circle at 80% 12%, rgba(227, 27, 35, 0.04), transparent 25%),
        #f5f7fa;
}

.taurus-login-card {
    width: min(100%, 450px);
    padding: 46px;
    border: 1px solid var(--taurus-border);
    border-radius: 22px;
    background: var(--taurus-card);
    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(15, 23, 42, 0.03);
}

.taurus-mobile-brand {
    display: none;
}

.taurus-login-header {
    margin-bottom: 32px;
}

.taurus-login-header h2 {
    margin: 8px 0 8px;
    color: var(--taurus-text);
    font-size: 31px;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.taurus-login-header p {
    margin: 0;
    color: var(--taurus-muted);
    font-size: 13px;
    line-height: 1.6;
}

.taurus-login-form {
    display: grid;
    gap: 22px;
}

.taurus-form-group {
    display: grid;
    gap: 8px;
}

.taurus-form-group label {
    color: #303846;
    font-size: 12px;
    font-weight: 700;
}

.taurus-input-wrapper {
    position: relative;
}

.taurus-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 1;
    transform: translateY(-50%);
    color: #a3acba;
    font-size: 11px;
    pointer-events: none;
}

.taurus-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 43px;
    border: 1px solid #dce1e8;
    border-radius: 11px;
    outline: none;
    background: #fbfcfd;
    color: #18202d;
    font: inherit;
    font-size: 13px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.taurus-input::placeholder {
    color: #a8afba;
}

.taurus-input:hover {
    border-color: #c8ced8;
}

.taurus-input:focus {
    border-color: var(--taurus-red);
    background: #fff;
    box-shadow: 0 0 0 4px var(--taurus-red-soft);
}

.taurus-login-button {
    width: 100%;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3px;
    padding: 0 18px 0 21px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    background: var(--taurus-red);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 10px 24px rgba(227, 27, 35, 0.22);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.taurus-login-button:hover {
    background: var(--taurus-red-dark);
    box-shadow: 0 13px 28px rgba(227, 27, 35, 0.28);
    transform: translateY(-1px);
}

.taurus-login-button:active {
    transform: translateY(0);
}

.taurus-button-arrow {
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 17px;
}

.taurus-validation-summary,
.taurus-validation-message {
    color: #c5222a;
    font-size: 11px;
}

.taurus-validation-summary:empty,
.taurus-validation-message:empty {
    display: none;
}

.taurus-login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 27px;
    padding-top: 20px;
    border-top: 1px solid #edf0f4;
    color: #8a94a3;
    font-size: 10px;
    font-weight: 600;
}

.security-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3baa6f;
    box-shadow: 0 0 0 4px rgba(59, 170, 111, 0.10);
}

.taurus-panel-footer {
    margin-top: 24px;
    color: #9aa3b0;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.taurus-panel-footer span {
    margin: 0 6px;
    color: #c5cad2;
}

@media (max-width: 1050px) {
    .taurus-login-shell {
        grid-template-columns: 1fr;
    }

    .taurus-login-brand {
        display: none;
    }

    .taurus-login-panel {
        min-height: 100vh;
        padding: 35px 24px;
    }

    .taurus-mobile-brand {
        display: flex;
        align-items: center;
        gap: 13px;
        margin-bottom: 35px;
    }

    .taurus-mobile-brand .taurus-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 23px;
    }

    .taurus-mobile-brand .taurus-brand-name {
        color: #111827;
        font-size: 17px;
    }

    .taurus-mobile-brand .taurus-brand-subtitle {
        color: #8a94a3;
    }

    .taurus-login-card {
        padding: 38px;
    }
}

@media (max-width: 520px) {
    .taurus-login-panel {
        padding: 22px 16px;
    }

    .taurus-login-card {
        padding: 28px 22px;
        border-radius: 17px;
        box-shadow: 0 15px 40px rgba(15, 23, 42, 0.07);
    }

    .taurus-login-header h2 {
        font-size: 27px;
    }

    .taurus-panel-footer {
        text-align: center;
        line-height: 1.7;
    }
}
/* ============================================================
   06-AE-76-R9 — OTP BUTTON + COOLDOWN UX
   ============================================================ */

/* Respect the hidden attribute even if another selector
   defines display:flex/block on the element. */
.taurus-login-page [hidden] {
    display: none !important;
}

/* ------------------------------------------------------------
   Verify button — primary action
   ------------------------------------------------------------ */

#taurusVerifyOtpButton {
    background: linear-gradient(
        135deg,
        #ef1b25 0%,
        #d90f19 100%
    );

    color: #ffffff;
    border: 1px solid #ef1b25;
    box-shadow: 0 14px 30px rgba(239, 27, 37, 0.20);

    position: relative;
    z-index: 1;
}

#taurusVerifyOtpButton:hover {
    background: linear-gradient(
        135deg,
        #d90f19 0%,
        #c70b15 100%
    );

    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(239, 27, 37, 0.26);
}

/* ------------------------------------------------------------
   Send OTP — secondary action
   ------------------------------------------------------------ */

#taurusSendOtpButton {
    background: #ffffff;
    color: #202938;
    border: 1px solid #d7deea;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.06);

    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

#taurusSendOtpButton:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #bdc8d8;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(16, 24, 40, 0.09);
}

/* Cooldown state */
#taurusSendOtpButton:disabled {
    background: #f3f5f8;
    color: #8a94a6;
    border-color: #dfe4eb;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ------------------------------------------------------------
   OTP section
   ------------------------------------------------------------ */

#taurusOtpSection {
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

#taurusOtpSection.taurus-otp-section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------
   Resend / cooldown status pill
   ------------------------------------------------------------ */

#taurusResendOtpButton {
    width: 100%;
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 10px;
    padding: 9px 13px;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

/* Countdown */
#taurusResendOtpButton.taurus-resend-countdown {
    background: #f7f9fc;
    border: 1px solid #e1e6ee;
    color: #6b7585;
    cursor: default;
}

/* Ready state */
#taurusResendOtpButton.taurus-resend-ready {
    background: #f0faf4;
    border: 1px solid #c7ead3;
    color: #237a43;
    cursor: pointer;
}

#taurusResendOtpButton.taurus-resend-ready:hover {
    background: #e8f7ed;
    border-color: #addfbc;
}

/* Green status dot */
.taurus-resend-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;

    border-radius: 50%;
    background: #36b86c;

    box-shadow:
        0 0 0 3px rgba(54, 184, 108, 0.10);
}

/* Countdown number */
#taurusResendOtpButton strong {
    min-width: 27px;

    padding: 2px 6px;

    border-radius: 6px;

    background: #e9edf3;
    color: #354052;

    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.taurus-resend-separator {
    color: #a0a9b7;
}

/* ------------------------------------------------------------
   OTP message
   ------------------------------------------------------------ */

#taurusOtpMessage {
    margin-top: 8px;

    color: #526174;

    font-size: 13px;
    line-height: 1.5;
}


/* ============================================================
   06-AE-76-R10 — CLEAN OTP COOLDOWN STATUS
   ============================================================ */

#taurusResendOtpButton {
    width: 100%;
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 10px;
    padding: 9px 13px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

/* ------------------------------------------------------------
   During 60-second cooldown
   ------------------------------------------------------------ */

#taurusResendOtpButton.taurus-resend-countdown {
    background: #f5f7fa;
    border: 1px solid #e2e6ed;
    color: #7a8494;

    cursor: default;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

/* Status dot during cooldown */
#taurusResendOtpButton.taurus-resend-countdown
.taurus-resend-dot {
    background: #9aa4b2;

    box-shadow:
        0 0 0 3px rgba(154, 164, 178, 0.10);
}

/* Countdown number */
#taurusResendOtpButton.taurus-resend-countdown strong {
    min-width: 30px;

    padding: 3px 7px;

    border-radius: 999px;

    background: #e8ecf1;
    color: #596474;

    font-size: 11px;
    font-weight: 700;

    font-variant-numeric: tabular-nums;
    text-align: center;
}

/* ------------------------------------------------------------
   After 60 seconds
   ------------------------------------------------------------ */

#taurusResendOtpButton.taurus-resend-ready {
    background: #f3faf6;
    border: 1px solid #cce9d7;
    color: #31794b;

    cursor: pointer;

    box-shadow:
        0 3px 10px rgba(40, 130, 75, 0.05);
}

#taurusResendOtpButton.taurus-resend-ready:hover {
    background: #eaf7ef;
    border-color: #b8dec6;
    color: #24683c;

    box-shadow:
        0 5px 14px rgba(40, 130, 75, 0.08);
}

/* Active green status dot */
#taurusResendOtpButton.taurus-resend-ready
.taurus-resend-dot {
    background: #35ad68;

    box-shadow:
        0 0 0 3px rgba(53, 173, 104, 0.11);
}

/* ------------------------------------------------------------
   Status separator
   ------------------------------------------------------------ */

.taurus-resend-separator {
    color: #a8b0bb;
}

/* ------------------------------------------------------------
   Send OTP secondary action during cooldown
   ------------------------------------------------------------ */

#taurusSendOtpButton:disabled {
    background: #f6f7f9;
    color: #a0a8b4;

    border-color: #e2e6ec;

    box-shadow: none;

    cursor: not-allowed;

    opacity: 0.78;
}


/* ============================================================
   06-AE-76-R12 — CONTEXTUAL SEND OTP BUTTON
   ============================================================ */

/*
   INITIAL STATE
   ------------------------------------------------------------
   Send OTP is the primary action because Verify is not
   available yet.
*/

#taurusSendOtpButton {
    background: linear-gradient(
        135deg,
        #ef1b25 0%,
        #d90f19 100%
    );

    color: #ffffff;

    border: 1px solid #ef1b25;

    box-shadow:
        0 14px 30px rgba(239, 27, 37, 0.20);

    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

#taurusSendOtpButton:hover:not(:disabled) {
    background: linear-gradient(
        135deg,
        #d90f19 0%,
        #c70b15 100%
    );

    color: #ffffff;

    border-color: #d90f19;

    transform: translateY(-1px);

    box-shadow:
        0 16px 34px rgba(239, 27, 37, 0.24);
}

/*
   OTP ACTIVE STATE
   ------------------------------------------------------------
   Once Verify & Sign In is visible, Send OTP becomes the
   secondary action.
*/

#taurusAdminLoginForm.taurus-otp-active
#taurusSendOtpButton {
    background: #ffffff;

    color: #d9151e;

    border: 1px solid #ef1b25;

    box-shadow:
        0 5px 14px rgba(239, 27, 37, 0.07);
}

#taurusAdminLoginForm.taurus-otp-active
#taurusSendOtpButton:hover:not(:disabled) {
    background: #fff7f7;

    color: #c70f17;

    border-color: #d9151e;

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(239, 27, 37, 0.10);
}

/*
   OTP ACTIVE + 60 SECOND COOLDOWN
   ------------------------------------------------------------
   Keep the secondary red-outline identity, but mute it.
*/

#taurusAdminLoginForm.taurus-otp-active
#taurusSendOtpButton:disabled {
    background: #ffffff;

    color: #c9a0a3;

    border-color: #e7c8ca;

    box-shadow: none;

    cursor: not-allowed;

    opacity: 0.82;

    transform: none;
}

/*
   Once cooldown finishes, the secondary action becomes
   fully active again.
*/

#taurusAdminLoginForm.taurus-otp-active
#taurusSendOtpButton:not(:disabled) {
    background: #ffffff;

    color: #d9151e;

    border-color: #ef1b25;
}

/*
   VERIFY BUTTON
   ------------------------------------------------------------
   Always remains the strongest action once visible.
*/

#taurusVerifyOtpButton {
    background: linear-gradient(
        135deg,
        #ef1b25 0%,
        #d90f19 100%
    );

    color: #ffffff;

    border: 1px solid #ef1b25;

    box-shadow:
        0 14px 30px rgba(239, 27, 37, 0.20);
}

#taurusVerifyOtpButton:hover {
    background: linear-gradient(
        135deg,
        #d90f19 0%,
        #c70b15 100%
    );

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 16px 34px rgba(239, 27, 37, 0.26);
}

/*
   Maintain proper visual separation between primary and
   secondary actions.
*/

#taurusVerifyOtpButton + #taurusSendOtpButton,
#taurusSendOtpButton + #taurusVerifyOtpButton {
    margin-top: 10px;
}


/* TAURUS BRAND THEME — deep teal and metallic gold */
:root {
    --taurus-bg: #06383e;
    --taurus-bg-soft: #0b5558;
    --taurus-panel: #f1f7f6;
    --taurus-card: #ffffff;
    --taurus-text: #12383b;
    --taurus-muted: #6b8585;
    --taurus-border: #d8e7e4;
    --taurus-red: #b98b1d;
    --taurus-red-dark: #8f6810;
    --taurus-red-soft: rgba(201, 154, 34, .12);
    --taurus-white: #ffffff;
}
.taurus-login-brand {
    background:
        radial-gradient(circle at 78% 20%, rgba(201, 154, 34, .23), transparent 30%),
        radial-gradient(circle at 15% 90%, rgba(31, 119, 117, .2), transparent 30%),
        linear-gradient(145deg, #042f35 0%, #075056 58%, #0b6664 100%);
}
.taurus-brand-mark {
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(226, 190, 85, .8);
    background: #06464c;
    box-shadow: 0 12px 28px rgba(201, 154, 34, .22);
}
.taurus-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.taurus-brand-name { color: #f2d47a; }
.taurus-brand-subtitle { color: #b7d3ce; }
.taurus-login-button,
.taurus-login-submit,
button[type="submit"] {
    accent-color: #b98b1d;
}

/* Password + OTP login flow; preserve existing Taurus theme tokens. */
.taurus-request-otp-link {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--taurus-red);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.taurus-request-otp-link:hover { color: var(--taurus-red-dark); text-decoration: underline; }
.taurus-otp-digit-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 8px; }
.taurus-otp-digit {
    width: 100%; min-width: 0; height: 50px; text-align: center;
    border: 1px solid #dce1e8; border-radius: 10px; outline: none;
    background: #fbfcfd; color: #18202d; font: inherit; font-size: 20px; font-weight: 700;
}
.taurus-otp-digit:focus { border-color: var(--taurus-red); background: #fff; box-shadow: 0 0 0 4px var(--taurus-red-soft); }

/* Keep the login-mode switch visible beneath either authentication mode. */
#taurusAdminLoginForm #taurusSendOtpButton {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    width: auto;
    min-height: 28px;
    margin-top: 14px;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--taurus-red, #d9151e);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
#taurusAdminLoginForm.taurus-otp-active #taurusSendOtpButton,
#taurusAdminLoginForm.taurus-otp-active #taurusSendOtpButton:disabled {
    display: inline-flex;
    background: transparent;
    border: 0;
    color: var(--taurus-red, #d9151e);
    opacity: 1;
    cursor: pointer;
}
#taurusAdminLoginForm #taurusSendOtpButton:hover {
    background: transparent;
    box-shadow: none;
    text-decoration: underline;
}
#taurusAdminLoginForm #taurusSendOtpButton[hidden] { display: none !important; }