:root {
    --auth-orange: #f57a00;
    --auth-orange-dark: #d96500;
    --auth-orange-light: #ffa447;
    --auth-orange-soft: #fff1e3;
    --auth-navy: #0d1b2a;
    --auth-navy-soft: #183248;
    --auth-success: #16a34a;
    --auth-muted: #64748b;
    --auth-border: #e6ebef;
    --auth-white: #ffffff;
}

html {
    min-height: 100%;
}

body.auth-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #f7f9fb;
    color: var(--auth-navy);
    font-family: 'Poppins', Arial, sans-serif;
}

body.auth-page *,
body.auth-page *::before,
body.auth-page *::after {
    box-sizing: border-box;
}

body.auth-page a {
    color: inherit;
}

body.auth-page button,
body.auth-page input {
    font: inherit;
}

.auth-shell {
    position: relative;
    display: flex;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: 28px;
    isolation: isolate;
}

.auth-shell::before,
.auth-shell::after {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.auth-shell::before {
    top: -220px;
    right: -110px;
    width: 520px;
    height: 520px;
    border: 75px solid rgba(245, 122, 0, 0.08);
}

.auth-shell::after {
    bottom: -260px;
    left: -160px;
    width: 540px;
    height: 540px;
    background: rgba(13, 27, 42, 0.035);
}

.auth-shell > :not(.login-layout) {
    width: min(100%, 500px);
    padding: 34px;
    border: 1px solid var(--auth-border);
    border-radius: 20px;
    background: var(--auth-white);
    box-shadow: 0 18px 45px rgba(13, 27, 42, 0.09);
}

.auth-shell > .auth-simple-card {
    width: min(100%, 560px);
    padding: 38px 44px 30px;
}

.auth-simple-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-navy);
    text-decoration: none;
}

.auth-simple-brand:hover {
    color: var(--auth-navy);
}

.auth-simple-brand img {
    width: 68px;
    height: 56px;
    padding: 4px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    object-fit: contain;
}

.auth-simple-brand strong,
.auth-simple-brand small {
    display: block;
}

.auth-simple-brand strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-simple-brand small {
    margin-top: 3px;
    color: var(--auth-muted);
    font-size: 9px;
}

.auth-simple-heading {
    margin-top: 39px;
}

.auth-simple-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--auth-orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.auth-simple-heading h1 {
    margin: 10px 0 0;
    color: var(--auth-navy);
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.1;
}

.auth-simple-heading p {
    max-width: 440px;
    margin: 10px 0 0;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.6;
}

.auth-simple-form {
    margin-top: 28px;
}

.auth-simple-field {
    margin-top: 0;
}

.auth-simple-form .auth-submit {
    margin-top: 22px;
}

.auth-simple-security {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin-top: 17px;
    color: #8b98a6;
    font-size: 9px;
    line-height: 1.45;
    text-align: center;
}

.auth-simple-security i {
    margin-top: 2px;
    color: var(--auth-success);
}

.auth-simple-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 29px;
    color: var(--auth-orange-dark);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.auth-simple-back:hover {
    color: var(--auth-orange);
    text-decoration: underline;
}

.login-layout {
    display: grid;
    width: min(100%, 1020px);
    grid-template-columns: minmax(330px, 0.86fr) minmax(420px, 1.14fr);
    overflow: hidden;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 24px;
    background: var(--auth-white);
    box-shadow: 0 24px 65px rgba(13, 27, 42, 0.13);
}

.login-brand-panel {
    position: relative;
    display: flex;
    min-height: 635px;
    flex-direction: column;
    overflow: hidden;
    padding: 39px 39px 30px;
    background: var(--auth-navy);
    color: var(--auth-white);
}

.login-brand-panel::before,
.login-brand-panel::after {
    position: absolute;
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.login-brand-panel::before {
    right: -210px;
    bottom: -185px;
    width: 500px;
    height: 390px;
    background: var(--auth-orange);
    transform: rotate(-10deg);
}

.login-brand-panel::after {
    top: 42%;
    left: -180px;
    width: 390px;
    height: 390px;
    border: 1px dashed rgba(255, 164, 71, 0.35);
}

.login-brand-top,
.login-brand-copy,
.login-feature-list,
.login-brand-bottom {
    position: relative;
    z-index: 1;
}

.login-brand-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.auth-brand-logo {
    display: inline-flex;
    width: 73px;
    height: 62px;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 10px;
    background: var(--auth-white);
    text-decoration: none;
}

.auth-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-brand-name {
    display: block;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-brand-tagline {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 9px;
    line-height: 1.3;
}

.login-brand-copy {
    max-width: 365px;
    margin-top: auto;
    padding-top: 55px;
}

.login-overline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--auth-orange-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-brand-copy h1 {
    margin: 14px 0 0;
    color: var(--auth-white);
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 1.04;
}

.login-brand-copy h1 span {
    color: var(--auth-orange-light);
}

.login-brand-copy p {
    max-width: 335px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.65;
}

.login-feature-list {
    display: grid;
    gap: 11px;
    margin-top: 32px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 10px;
}

.login-feature i {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    border: 1px solid rgba(255, 164, 71, 0.35);
    border-radius: 7px;
    color: var(--auth-orange-light);
    font-size: 11px;
}

.login-brand-bottom {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 36px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 9px;
}

.login-brand-bottom i {
    color: var(--auth-orange-light);
}

.login-form-panel {
    display: flex;
    min-width: 0;
    align-items: center;
    padding: 43px 64px 35px;
    background: var(--auth-white);
}

.login-form-inner {
    width: min(100%, 410px);
    margin: 0 auto;
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--auth-muted);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

.login-back-link:hover {
    color: var(--auth-orange-dark);
}

.login-form-heading {
    margin-top: 43px;
}

.login-form-heading .section-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--auth-orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-form-heading h2 {
    margin: 0;
    color: var(--auth-navy);
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.12;
}

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

.auth-status {
    margin-top: 18px;
    padding: 10px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
    font-size: 10px;
}

.login-form {
    margin-top: 28px;
}

.auth-field {
    margin-top: 17px;
}

.auth-field:first-child {
    margin-top: 0;
}

.auth-field-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--auth-navy);
    font-size: 11px;
    font-weight: 700;
}

.auth-field-label i {
    color: var(--auth-orange);
    font-size: 12px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 13px;
    color: #9aa7b4;
    font-size: 12px;
    pointer-events: none;
    transform: translateY(-50%);
}

.auth-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 13px 0 38px;
    border: 1px solid #dfe5ea;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: var(--auth-navy);
    font-size: 12px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-input-password {
    padding-right: 45px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    display: inline-flex;
    width: 37px;
    height: 37px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #8d9aa7;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 180ms ease, color 180ms ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: var(--auth-orange-soft);
    color: var(--auth-orange-dark);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid rgba(245, 122, 0, 0.35);
    outline-offset: 1px;
}

.auth-input::placeholder {
    color: #a5b0bb;
}

.auth-input:focus {
    border-color: var(--auth-orange);
    box-shadow: 0 0 0 4px rgba(245, 122, 0, 0.12);
}

.auth-field-error {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 10px;
}

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

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--auth-muted);
    font-size: 10px;
    cursor: pointer;
}

.auth-remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--auth-orange);
}

.auth-forgot-link {
    color: var(--auth-orange-dark);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.auth-forgot-link:hover {
    color: var(--auth-orange);
    text-decoration: underline;
}

.auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    border: 0;
    border-radius: 9px;
    background: var(--auth-orange);
    box-shadow: 0 9px 18px rgba(245, 122, 0, 0.2);
    color: var(--auth-white);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    background: var(--auth-orange-dark);
    box-shadow: 0 11px 22px rgba(245, 122, 0, 0.27);
    transform: translateY(-2px);
}

.auth-submit:focus-visible,
.login-back-link:focus-visible,
.auth-forgot-link:focus-visible,
.auth-brand-logo:focus-visible {
    outline: 3px solid rgba(245, 122, 0, 0.32);
    outline-offset: 3px;
}

.auth-security-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    color: #8b98a6;
    font-size: 9px;
    line-height: 1.45;
    text-align: center;
}

.auth-security-note i {
    margin-top: 2px;
    color: var(--auth-success);
}

.auth-footer {
    margin-top: 35px;
    padding-top: 15px;
    border-top: 1px solid #eef1f3;
    color: #9aa6b2;
    font-size: 9px;
    text-align: center;
}

.auth-footer a {
    color: var(--auth-orange-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 850px) {
    .auth-shell {
        padding: 18px;
    }

    .login-layout {
        grid-template-columns: minmax(270px, 0.72fr) minmax(350px, 1.28fr);
    }

    .login-brand-panel {
        padding: 30px 27px 25px;
    }

    .login-form-panel {
        padding: 35px 35px 30px;
    }
}

@media (max-width: 680px) {
    .auth-shell {
        align-items: flex-start;
        padding: 12px;
    }

    .auth-shell > .auth-simple-card {
        padding: 30px 22px 24px;
        border-radius: 18px;
    }

    .auth-simple-heading {
        margin-top: 31px;
    }

    .auth-simple-heading h1 {
        font-size: 25px;
    }

    .login-layout {
        display: block;
        border-radius: 18px;
    }

    .login-brand-panel {
        display: block;
        min-height: 0;
        padding: 22px 22px 26px;
    }

    .login-brand-panel::before {
        right: -135px;
        bottom: -155px;
        width: 360px;
        height: 270px;
    }

    .login-brand-panel::after {
        top: auto;
        bottom: -95px;
        left: -150px;
        width: 270px;
        height: 270px;
    }

    .auth-brand-logo {
        width: 60px;
        height: 50px;
    }

    .auth-brand-name {
        font-size: 15px;
    }

    .login-brand-copy {
        margin-top: 27px;
        padding-top: 0;
    }

    .login-brand-copy h1 {
        margin-top: 10px;
        font-size: clamp(1.8rem, 9vw, 2.45rem);
    }

    .login-brand-copy p {
        margin-top: 11px;
        font-size: 11px;
    }

    .login-feature-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 15px;
        margin-top: 20px;
    }

    .login-feature {
        font-size: 9px;
    }

    .login-feature i {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
        font-size: 9px;
    }

    .login-brand-bottom {
        margin-top: 20px;
    }

    .login-form-panel {
        display: block;
        padding: 30px 22px 24px;
    }

    .login-form-heading {
        margin-top: 31px;
    }

    .login-form-heading h2 {
        font-size: 25px;
    }
}

@media (max-width: 390px) {
    .auth-shell {
        padding: 0;
    }

    .login-layout {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-form-panel {
        padding-inline: 18px;
    }

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

@media (prefers-reduced-motion: reduce) {
    body.auth-page *,
    body.auth-page *::before,
    body.auth-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
