.auth-entry-body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #F5F8FC;
    color: #334155;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    letter-spacing: 0;
}

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

.auth-entry-body a {
    color: inherit;
    text-decoration: none;
}

.auth-entry {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(480px, .92fr) minmax(560px, 1fr);
    background: #FFFFFF;
}

.auth-brand {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 64px;
    overflow: hidden;
    color: #FFFFFF;
    background:
        linear-gradient(115deg, rgba(8, 37, 74, .96) 0%, rgba(8, 76, 132, .88) 52%, rgba(20, 120, 150, .74) 100%),
        url('/static/index/picture/banner_4.jpg') center/cover no-repeat;
}

.auth-brand::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(8, 37, 74, 0) 0%, rgba(8, 37, 74, .34) 100%);
    pointer-events: none;
}

.auth-brand__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
}

.auth-brand__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 72px;
}

.auth-brand__logo {
    width: 168px;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
}

.auth-brand__link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .1);
    font-size: 13px;
    font-weight: 760;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.auth-brand__link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, .16);
    transform: translateY(-1px);
}

.auth-brand__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    font-weight: 820;
}

.auth-brand h1 {
    max-width: 620px;
    margin: 22px 0 18px;
    color: #FFFFFF;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-brand__desc {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.86;
}

.auth-brand__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 38px;
}

.auth-brand__feature {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    min-height: 84px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
}

.auth-brand__feature i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    color: #FFFFFF;
    font-size: 18px;
}

.auth-brand__feature strong {
    display: block;
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 860;
}

.auth-brand__feature span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    line-height: 1.45;
}

.auth-brand__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}

.auth-brand__foot span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 760;
}

.auth-panel {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFE 100%);
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    min-width: 0;
    max-width: 520px;
    padding: 40px;
    border: 1px solid rgba(226, 232, 240, .96);
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 56px rgba(15, 23, 42, .09);
}

.auth-card--wide {
    max-width: 660px;
}

.auth-mobile-logo {
    display: none;
    min-height: 44px;
    margin-bottom: 26px;
}

.auth-mobile-logo a {
    display: inline-flex;
    align-items: center;
}

.auth-mobile-logo img {
    display: block;
    width: 154px;
    height: auto;
    max-height: 44px;
    object-fit: contain;
    object-position: left center;
}

.auth-card__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(10, 92, 255, .16);
    border-radius: 6px;
    background: rgba(10, 92, 255, .06);
    color: #0747C7;
    font-size: 13px;
    font-weight: 820;
}

.auth-card__header h2 {
    margin: 18px 0 10px;
    color: #0B1628;
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-card__header p {
    margin: 0;
    color: #64748B;
    font-size: 14px;
    line-height: 1.75;
}

.auth-card__header a,
.auth-links a,
.auth-agreement a {
    color: #0A5CFF;
    font-weight: 800;
}

.auth-card__header a:hover,
.auth-links a:hover,
.auth-agreement a:hover {
    color: #0747C7;
    text-decoration: underline;
}

.auth-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

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

.auth-field {
    display: block;
    min-width: 0;
}

.auth-field--full {
    grid-column: 1 / -1;
}

.auth-field__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.auth-field label,
.auth-field__label {
    display: block;
    color: #0B1628;
    font-size: 14px;
    font-weight: 820;
}

.auth-input {
    position: relative;
}

.auth-input__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 1;
    color: #94A3B8;
    font-size: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 46px;
    border: 1px solid #DDE6F0;
    border-radius: 8px;
    background: #F8FAFC;
    color: #0B1628;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-input input::placeholder {
    color: #94A3B8;
}

.auth-input input:focus {
    border-color: rgba(10, 92, 255, .45);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(10, 92, 255, .08);
}

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

.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, color .2s ease;
}

.auth-password-toggle:hover {
    background: rgba(10, 92, 255, .08);
    color: #0A5CFF;
}

.auth-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    gap: 12px;
}

.auth-code-image {
    width: 138px;
    height: 50px;
    border: 1px solid #DDE6F0;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    background: #F8FAFC;
}

.auth-code-button {
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(10, 92, 255, .18);
    border-radius: 8px;
    background: rgba(10, 92, 255, .07);
    color: #0A5CFF;
    font-size: 14px;
    font-weight: 820;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.auth-code-button:hover {
    border-color: rgba(10, 92, 255, .28);
    background: rgba(10, 92, 255, .12);
}

.auth-code-button:disabled,
.auth-submit:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #64748B;
    font-size: 14px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748B;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
}

.auth-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0A5CFF;
}

.auth-agreement {
    align-items: flex-start;
}

.auth-submit {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 8px;
    background: #0A5CFF;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 860;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(10, 92, 255, .22);
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-submit:hover {
    background: #0747C7;
    box-shadow: 0 18px 34px rgba(10, 92, 255, .28);
    transform: translateY(-1px);
}

.auth-links {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #E5EAF1;
    color: #64748B;
    font-size: 14px;
    text-align: center;
}

.auth-security {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.auth-security span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid #E5EAF1;
    border-radius: 8px;
    background: #F8FAFC;
    color: #64748B;
    font-size: 12px;
    font-weight: 760;
    white-space: nowrap;
}

.auth-copy {
    margin-top: 22px;
    color: #94A3B8;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.auth-toast {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 2000;
    width: min(360px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid #E5EAF1;
    border-left: 4px solid #0A5CFF;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.auth-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.auth-toast[data-type="success"] {
    border-left-color: #13A86B;
}

.auth-toast[data-type="error"] {
    border-left-color: #D92D20;
}

.auth-toast__body {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.auth-toast__icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(10, 92, 255, .08);
    color: #0A5CFF;
}

.auth-toast[data-type="success"] .auth-toast__icon {
    background: rgba(19, 168, 107, .1);
    color: #13A86B;
}

.auth-toast[data-type="error"] .auth-toast__icon {
    background: rgba(217, 45, 32, .09);
    color: #D92D20;
}

.auth-toast strong {
    display: block;
    color: #0B1628;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 860;
}

.auth-toast p {
    margin: 4px 0 0;
    color: #64748B;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 1180px) {
    .auth-entry {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        min-height: auto;
        padding: 34px 28px 42px;
    }

    .auth-brand__top {
        margin-bottom: 34px;
    }

    .auth-panel {
        min-height: auto;
        padding: 34px 24px 48px;
    }
}

@media (max-width: 720px) {
    .auth-brand {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        align-items: flex-start;
        padding: 24px 18px 34px;
    }

    .auth-card {
        max-width: none;
        padding: 24px;
        box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
    }

    .auth-mobile-logo {
        display: flex;
        align-items: center;
    }

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

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

    .auth-code-image,
    .auth-code-button {
        width: 100%;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-toast {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}
