:root {
    --accent: #f27422;
    --accent-dark: #d85d13;
    --background: #f27422;
    --border: #ded9cf;
    --ink: #2b2924;
    --muted: #746f65;
    --link: #a53e0c;
    --link-hover: #762b08;
    --danger: #c52f48;
    --success: #247a4b;
}

* {
    box-sizing: border-box;
}

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

body {
    background: var(--background);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
}

button,
input {
    font: inherit;
}

.redirect-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 18px;
}

.auth-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 55px rgba(83, 53, 0, .2);
    max-width: 500px;
    padding: 52px 50px 58px;
    width: min(100%, 500px);
}

.auth-card-compact {
    padding-bottom: 52px;
}

.brand-wrap {
    margin-bottom: 54px;
    text-align: center;
}

.brand-wrap-compact {
    margin-bottom: 28px;
}

.brand-logo {
    display: inline-block;
    height: auto;
    max-height: 160px;
    max-width: 260px;
    object-fit: contain;
    width: 72%;
}

.page-title {
    color: var(--ink);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 12px;
    text-align: center;
}

.page-help {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 28px;
    text-align: center;
}

.page-help-detail {
    font-size: 14px;
}

.redirect-form {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-input {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--ink);
    font-size: 15px;
    height: 43px;
    outline: none;
    padding: 10px 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
    width: 100%;
}

.form-input::placeholder {
    color: #978f82;
}

.form-input:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(242, 116, 34, .18);
}

.form-options {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

.remember-option {
    align-items: center;
    color: var(--link);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
}

.remember-option input {
    accent-color: #0d6efd;
    height: 14px;
    margin: 0;
    width: 14px;
}

.text-link {
    color: var(--link);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--link-hover);
    text-decoration: underline;
}

.primary-button {
    align-items: center;
    background: var(--accent);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 10px;
    height: 44px;
    justify-content: center;
    margin-top: 4px;
    padding: 0 20px;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, box-shadow .18s ease;
    width: 100%;
}

.primary-button:hover,
.primary-button:focus-visible {
    background: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(242, 116, 34, .22);
}

.primary-button:disabled,
.primary-button.is-loading {
    cursor: wait;
    opacity: .86;
    pointer-events: none;
}

.button-spinner {
    animation: spin .75s linear infinite;
    border: 2px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    border-top-color: #fff;
    display: none;
    height: 17px;
    width: 17px;
}

.is-loading .button-spinner {
    display: inline-block;
}

.validation-message {
    color: var(--danger);
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.validation-message:empty {
    display: none;
}

.alert {
    border: 1px solid;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 20px;
    padding: 12px 14px;
}

.alert-error {
    background: #fff5f6;
    border-color: #f2c4ca;
    color: var(--danger);
}

.alert-success {
    background: #f0faf5;
    border-color: #bce2ce;
    color: var(--success);
}

.back-link {
    align-self: center;
    margin-top: -6px;
}

.button-link {
    margin-top: 30px;
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 575.98px) {
    .auth-card {
        border-radius: 12px;
        padding: 36px 22px 42px;
    }

    .auth-card-compact {
        padding-bottom: 36px;
    }

    .brand-wrap {
        margin-bottom: 34px;
    }

    .brand-wrap-compact {
        margin-bottom: 26px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}
