:root {
    --red: #e10600;
    --ink: #171717;
    --muted: #737373;
    --line: #dedede;
    --white: #ffffff;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    min-width: 320px;
    background: var(--red);
    color: var(--ink);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    min-height: calc(100vh - 20px);
    margin: 10px;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.auth-header,
.auth-footer {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
}

.auth-header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8e8e8;
}

.brand {
    color: var(--red);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .16em;
}

.environment {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.auth-main {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 54px 0 72px;
}

.auth-panel {
    width: min(100%, 430px);
    padding-top: 24px;
    border-top: 3px solid var(--red);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 650;
    letter-spacing: -.03em;
}

.intro {
    margin: 10px 0 34px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.alert {
    margin: 0 0 22px;
    padding: 12px 14px;
    border-left: 3px solid var(--red);
    background: #fff5f4;
    color: #8a1d1a;
    font-size: 13px;
    line-height: 1.45;
}

form {
    display: grid;
    gap: 10px;
}

label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 650;
}

input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

input:focus {
    border-color: var(--ink);
    box-shadow: inset 3px 0 0 var(--red);
}

.hint {
    margin: -2px 0 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

button {
    height: 46px;
    margin-top: 16px;
    border: 0;
    background: var(--red);
    color: var(--white);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #c90500;
}

.auth-footer {
    min-height: 74px;
    display: flex;
    align-items: center;
    border-top: 1px solid #e8e8e8;
    color: #999;
    font-size: 11px;
}

@media (max-width: 620px) {
    .auth-shell {
        min-height: calc(100vh - 12px);
        margin: 6px;
    }

    .auth-header,
    .auth-main,
    .auth-footer {
        width: calc(100% - 32px);
    }

    .auth-header {
        height: 68px;
    }

    .auth-main {
        align-items: flex-start;
        padding-top: 52px;
    }

    h1 {
        font-size: 31px;
    }
}


.password-requirements {
    margin: 2px 0 8px;
    display: grid;
    gap: 7px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c62828;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    transition: color .18s ease;
}

.requirement-icon {
    width: 10px;
    flex: 0 0 10px;
    font-size: 8px;
    line-height: 1;
}

.requirement.valid {
    color: #16823a;
}


.alert.success {
    border-left-color: #16823a;
    background: #f1fbf4;
    color: #146b33;
}

.mfa-code {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .28em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.trust-device {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.trust-device input {
    width: 16px;
    height: 16px;
    padding: 0;
    accent-color: var(--red);
}

.resend-form {
    margin-top: 8px;
}

.secondary-button {
    width: 100%;
    margin-top: 0;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
}

.secondary-button:hover {
    background: #f7f7f7;
}


button:disabled {
    opacity: .55;
    cursor: wait;
}

.send-status {
    margin: 0 0 18px;
    padding: 11px 13px;
    border-left: 3px solid #b78300;
    background: #fff9e8;
    color: #7a5900;
    font-size: 12px;
    line-height: 1.45;
}

.send-status.success {
    border-left-color: #16823a;
    background: #f1fbf4;
    color: #146b33;
}

.send-status.error {
    border-left-color: var(--red);
    background: #fff5f4;
    color: #8a1d1a;
}
