html {
    background: #f4f7fb;
}

.auth-modern-body {
    min-height: 100vh;
    margin: 0;
    background: #f4f7fb;
    color: #111827;
}

.auth-modern-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 20px;
    overflow: auto;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

.auth-modern-wrapper::before,
.auth-modern-wrapper::after {
    display: none;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 440px);
    width: min(1060px, 100%);
    min-height: 640px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12);
    overflow: hidden;
}

.auth-copy-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px;
    background: #111827;
    color: #fff;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.auth-brand:hover {
    color: #bfdbfe;
}

.auth-brand img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
}

.auth-copy-content {
    max-width: 480px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(147, 197, 253, .24);
    border-radius: 999px;
    background: rgba(37, 99, 235, .18);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
}

.auth-copy-content h1 {
    margin: 18px 0 12px;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.18;
}

.auth-copy-content p {
    max-width: 420px;
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
}

.auth-feature-list {
    display: grid;
    gap: 12px;
}

.auth-feature-list span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 700;
}

.auth-feature-list .layui-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #93c5fd;
    font-size: 16px;
}

.auth-modern-wrapper .auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 640px;
    padding: 42px 44px;
    border: 0;
    border-left: 1px solid #e5e7eb;
    border-radius: 0;
    background: #fff;
    color: #111827;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-card-heading {
    margin-bottom: 26px;
}

.auth-card-heading span {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
}

.auth-card-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
}

.auth-card-heading p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.auth-modern-wrapper .form-floating {
    position: relative;
}

.auth-modern-wrapper .form-floating > .form-control,
.auth-modern-wrapper .form-floating > .form-control-plaintext {
    height: 56px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f8fafc;
    color: #111827;
    font-size: 14px;
    box-shadow: none;
}

.auth-modern-wrapper .form-floating > label {
    color: #64748b;
    font-size: 13px;
}

.auth-modern-wrapper .form-control:focus {
    border-color: #2563eb;
    background: #fff;
    color: #111827;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.auth-form-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 20px;
}

.auth-modern-wrapper .form-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    color: #64748b;
}

.auth-modern-wrapper .form-check input[type=checkbox] {
    width: 16px;
    height: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
}

.auth-modern-wrapper .form-check input[type=checkbox]:checked {
    border-color: #2563eb;
    background: #2563eb;
}

.auth-modern-wrapper .form-check label {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.auth-modern-wrapper .text-link {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.auth-modern-wrapper .text-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.auth-modern-wrapper .btn-gradient {
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(37, 99, 235, .2);
    transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease;
}

.auth-modern-wrapper .btn-gradient:hover {
    background: #1d4ed8;
    box-shadow: 0 16px 28px rgba(37, 99, 235, .24);
    transform: translateY(-1px);
}

.auth-modern-wrapper .btn-outline-primary {
    min-height: 56px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
}

.auth-modern-wrapper .btn-outline-primary:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.auth-code-row {
    align-items: stretch;
}

.auth-modern-wrapper .image-code {
    width: 100%;
    height: 56px;
    margin-left: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    object-fit: cover;
    opacity: 1;
    cursor: pointer;
}

.auth-modern-wrapper .divider {
    color: #94a3b8;
}

.auth-modern-wrapper .divider::before,
.auth-modern-wrapper .divider::after {
    background: #e5e7eb;
}

.auth-switch-text {
    margin: 20px 0 0;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.auth-modern-body .prompt-image-code {
    height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-copy-panel {
        gap: 34px;
        padding: 30px;
    }

    .auth-modern-wrapper .auth-card {
        min-height: 0;
        padding: 34px 30px;
        border-left: 0;
        border-top: 1px solid #e5e7eb;
    }
}

@media (max-width: 576px) {
    .auth-modern-wrapper {
        align-items: stretch;
        padding: 14px;
    }

    .auth-shell {
        width: 100%;
    }

    .auth-copy-panel {
        padding: 22px;
    }

    .auth-copy-content h1 {
        font-size: 28px;
    }

    .auth-feature-list {
        display: none;
    }

    .auth-modern-wrapper .auth-card {
        padding: 24px 18px;
    }

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

    .auth-modern-wrapper .btn-outline-primary {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 12px;
    }
}
