:root {
    --auth-gold: #e6c46d;
    --auth-gold-hover: #f0d17f;
    --auth-surface: #101315;
    --auth-surface-soft: #171b1e;
    --auth-border: #343b42;
    --auth-muted: #98a3b1;
}

* { box-sizing: border-box; }

a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

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

.trackone-auth-body {
    margin: 0;
    overflow-x: hidden;
    font-family: "Inter", sans-serif;
    background: #27313b;
}

.trackone-auth {
    position: relative;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
             max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background: url("../images/authentication/montains.jpg") center / cover no-repeat;
}

.trackone-auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 35, .78);
    backdrop-filter: blur(4px);
}

.trackone-auth-card {
    position: relative;
    z-index: 1;
    width: min(100%, 400px);
    overflow: hidden;
    padding: 42px 40px 34px;
    border: 1px solid rgba(230, 196, 109, .14);
    border-radius: 20px;
    color: #f8fafc;
    background:
        radial-gradient(circle at 100% 0, rgba(230, 196, 109, .09), transparent 34%),
        var(--auth-surface);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.trackone-auth-accent {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--auth-gold), transparent);
}

.trackone-auth-logo {
    width: min(100%, 290px);
    height: 70px;
    display: block;
    margin: 0 auto 25px;
    object-fit: contain;
}

.trackone-auth-heading {
    margin-bottom: 26px;
    text-align: center;
}

.trackone-auth-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--auth-gold);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.trackone-auth-heading h1 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    font-weight: 680;
    letter-spacing: -.03em;
}

.trackone-auth-heading p {
    margin: 8px 0 0;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.55;
}

.trackone-auth-field { margin-bottom: 15px; }

.trackone-auth-input {
    min-height: 50px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #f3f6fb;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.trackone-auth-input:focus-within {
    border-color: var(--auth-gold);
    box-shadow: 0 0 0 3px rgba(230, 196, 109, .14);
}

.trackone-auth-input > span {
    width: 52px;
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    border-right: 1px solid #d9dee6;
    color: #647184;
    background: #fff;
}

.trackone-auth-input .material-icons-two-tone {
    color: #647184;
    font-size: 19px;
}

.trackone-auth-input input {
    min-width: 0;
    flex: 1;
    padding: 0 15px;
    border: 0;
    outline: 0;
    color: #111827;
    background: #f3f6fb;
    font: 500 13px/1.2 "Inter", sans-serif;
}

.trackone-auth-input input::placeholder { color: #8993a2; }

.trackone-password-toggle {
    width: 44px;
    display: grid;
    place-items: center;
    border: 0;
    color: #647184;
    background: #f3f6fb;
    cursor: pointer;
}

.trackone-auth-field > .text-danger {
    display: block;
    margin-top: 5px;
    font-size: 11px;
}

.trackone-auth-validation:empty { display: none; }

.trackone-auth-validation {
    margin-bottom: 15px;
    padding: 9px 11px;
    border: 1px solid rgba(248, 113, 113, .3);
    border-radius: 8px;
    color: #fecaca;
    background: rgba(127, 29, 29, .22);
    font-size: 11px;
}

.trackone-auth-validation ul { margin: 0; padding-left: 17px; }

.trackone-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -2px;
    color: var(--auth-muted);
    font-size: 11px;
}

.trackone-auth-options label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trackone-auth-options input { accent-color: var(--auth-gold); }

.trackone-auth-remember-browser {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--auth-muted);
    font-size: 11px;
}

.trackone-auth-remember-browser input { accent-color: var(--auth-gold); }

.trackone-auth-options a {
    color: var(--auth-gold);
    text-decoration: none;
}

.trackone-auth-options a:hover { color: var(--auth-gold-hover); }

.trackone-auth-actions {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.trackone-auth-primary,
.trackone-auth-microsoft {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 11px 18px;
    border-radius: 10px;
    font: 700 13px/1.2 "Inter", sans-serif;
}

.trackone-auth-primary {
    border: 1px solid var(--auth-gold);
    color: #111315;
    background: var(--auth-gold);
    box-shadow: 0 10px 24px rgba(230, 196, 109, .12);
    cursor: pointer;
}

.trackone-auth-primary:hover {
    border-color: var(--auth-gold-hover);
    background: var(--auth-gold-hover);
}

a.trackone-auth-primary {
    text-decoration: none;
}

.trackone-auth-back {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #aab5c2;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.trackone-auth-back:hover { color: #fff; }

.trackone-auth-back .material-icons-two-tone {
    color: #aab5c2 !important;
    -webkit-text-fill-color: #aab5c2 !important;
    filter: brightness(0) saturate(100%) invert(79%) sepia(10%) saturate(360%) hue-rotate(173deg) brightness(91%) contrast(88%);
    font-size: 15px;
}

.trackone-auth-back:hover .material-icons-two-tone {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    filter: brightness(0) invert(1);
}

.trackone-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7d8795;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.trackone-auth-divider::before,
.trackone-auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--auth-border);
    content: "";
}

.trackone-auth-microsoft {
    border: 1px solid #4b5159;
    color: #fff;
    background: var(--auth-surface-soft);
}

.trackone-auth-microsoft:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.microsoft-mark {
    display: grid;
    grid-template: repeat(2, 7px) / repeat(2, 7px);
    gap: 2px;
}

.microsoft-mark span:nth-child(1) { background: #f35325; }
.microsoft-mark span:nth-child(2) { background: #81bc06; }
.microsoft-mark span:nth-child(3) { background: #05a6f0; }
.microsoft-mark span:nth-child(4) { background: #ffba08; }

.trackone-auth-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 23px 0 0;
    color: #737d89;
    font-size: 10px;
    text-align: center;
}

.trackone-auth-note .material-icons-two-tone {
    color: #737d89 !important;
    -webkit-text-fill-color: #737d89 !important;
    filter: brightness(0) saturate(100%) invert(50%) sepia(11%) saturate(416%) hue-rotate(175deg) brightness(93%) contrast(88%);
    font-size: 13px;
}

.trackone-auth-status {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border: 1px solid rgba(230, 196, 109, .3);
    border-radius: 50%;
    color: var(--auth-gold);
    background: rgba(230, 196, 109, .08);
}

.trackone-auth-status .material-icons-two-tone {
    color: var(--auth-gold);
    font-size: 24px;
}

.trackone-auth-confirmation > .trackone-auth-primary {
    min-height: 48px;
}

@media (max-width: 575.98px) {
    .trackone-auth-card {
        width: min(100%, 390px);
        padding: 34px 24px 27px;
        border-radius: 16px;
    }

    .trackone-auth-logo {
        width: min(88%, 270px);
        margin-bottom: 22px;
    }
}
