* {
    box-sizing: border-box;
}

:root {
    --auth-ink: #101828;
    --auth-muted: #777d88;
    --auth-line: #dedede;
    --auth-soft: #f7f7f7;
    --auth-primary: #df8d07;
    --auth-primary-dark: #c97906;
    --auth-navy: #062b5f;
    --auth-danger: #c95050;
}

html {
    min-height: 100%;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    background: #ffffff;
    color: var(--auth-ink);
    font-family: "Poppins", Arial, sans-serif;
}

.auth-shell {
    min-height: 100vh;
    padding: 42px 48px 72px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-navy);
    font-size: 27px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
}

.auth-brand img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
}

.auth-brand span span {
    color: var(--auth-primary);
}

.auth-main {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 190px);
    padding-top: 82px;
}

.auth-card {
    width: min(100%, 610px);
}

.auth-card header {
    margin-bottom: 30px;
    text-align: center;
}

.auth-card h1 {
    margin: 0;
    color: #202124;
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.auth-card header p {
    margin: 10px auto 0;
    color: var(--auth-muted);
    font-size: 18px;
    line-height: 1.45;
}

.auth-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: -12px 0 26px;
    color: var(--auth-danger);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.auth-alert.is-hidden {
    display: none;
}

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

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.auth-field {
    display: grid;
    gap: 10px;
}

.auth-field label {
    color: #202124;
    font-size: 16px;
    font-weight: 600;
}

.auth-control {
    position: relative;
}

.auth-field input {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border: 1px solid var(--auth-line);
    border-radius: 14px;
    background: #ffffff;
    color: #202124;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input[type="password"] {
    padding-right: 52px;
}

.auth-field input:focus {
    border-color: rgba(223, 141, 7, 0.55);
    box-shadow: 0 0 0 4px rgba(223, 141, 7, 0.12);
}

.auth-field input::placeholder {
    color: #989da6;
}

.auth-eye {
    position: absolute;
    top: 50%;
    right: 16px;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    color: #a0a4ab;
    font-size: 22px;
    pointer-events: none;
}

.auth-helper {
    color: var(--auth-muted);
    font-size: 16px;
}

.auth-helper a,
.auth-inline-link {
    color: var(--auth-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin-top: 24px;
    border: 0;
    border-radius: 14px;
    background: var(--auth-primary);
    color: #111111;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-button:hover {
    background: var(--auth-primary-dark);
    box-shadow: 0 14px 26px rgba(223, 141, 7, 0.22);
    transform: translateY(-1px);
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 22px;
    margin: 34px 0 24px;
    color: #a0a4ab;
    font-size: 17px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: #e7e7e7;
}

.auth-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    border: 1px solid var(--auth-line);
    border-radius: 14px;
    background: #ffffff;
    color: #202124;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-secondary:hover {
    border-color: #cfcfcf;
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
    transform: translateY(-1px);
}

.auth-footer-note {
    margin: 24px 0 0;
    color: var(--auth-muted);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 760px) {
    .auth-shell {
        padding: 28px 20px 48px;
    }

    .auth-brand {
        font-size: 23px;
    }

    .auth-brand img {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .auth-main {
        min-height: auto;
        padding-top: 72px;
    }

    .auth-card {
        width: 100%;
    }

    .auth-card h1 {
        font-size: 30px;
    }

    .auth-card header p,
    .auth-helper,
    .auth-divider,
    .auth-secondary,
    .auth-button {
        font-size: 16px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }
}
