body.admin-login-page {
    min-height: 100vh;
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #ffffff;
    color: #1f2937;
}

.admin-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.admin-login-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.95rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #ebf0f6;
}

.project-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #2563eb;
    font-size: 1.35rem;
    font-weight: 700;
    min-height: 42px;
}

.project-logo img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    object-fit: contain;
}

.admin-login-main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    align-items: stretch;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    background: url("https://awgagent.com:9003/img/back.727269c8.jpg") center / cover no-repeat;
}

.admin-login-main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.02) 46%, rgba(246, 249, 252, 0.72) 100%);
    pointer-events: none;
}

.admin-login-backgrounds {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.admin-login-background {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease;
}

.admin-login-background.active {
    opacity: 1;
}

.admin-login-hero,
.admin-login-panel {
    display: flex;
    align-items: center;
}

.admin-login-hero {
    padding: 0;
}

.hero-image-panel {
    display: none;
}

.hero-image-panel::before {
    content: none;
}

.hero-copy,
.hero-eyebrow,
.hero-desc,
.hero-points,
.hero-point,
.card-kicker {
    display: none;
}

.admin-login-panel {
    justify-content: flex-end;
    padding: 1.25rem 1.25rem 1.25rem 0;
}

.admin-login-card {
    width: min(100%, 460px);
    margin-right: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid #e6eef8;
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
    padding: 2rem;
}

.card-head {
    margin-bottom: 1.25rem;
}

.card-head h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.card-head p {
    margin: 0.55rem 0 0;
    color: #667085;
}

.admin-login-form {
    margin-top: 0;
}

.input-wrapper input {
    width: 100%;
    padding: 0.92rem 1rem 0.92rem 2.8rem;
    border: 1px solid #d8e1ec;
    border-radius: 14px;
    background: #f8fbff;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-login-footer {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.42rem;
    min-height: 104px;
    padding: 1rem 1.5rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid #ebf0f6;
    text-align: center;
}

.footer-block {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    display: block;
    text-align: center;
    max-width: min(100%, 760px);
}

.footer-block span {
    display: block;
    color: #667085;
    font-size: 0.82rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.slider-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 0.75rem;
    color: #64748b;
}

.slider-background {
    position: relative;
    width: 100%;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.92rem;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i:first-child {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    border: none;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.45rem;
}

.toggle-password:hover {
    color: #2563eb;
}

.verify-code-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 0.65rem;
    align-items: center;
}

.send-code-btn {
    height: 100%;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.send-code-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.send-code-btn:disabled {
    cursor: not-allowed;
    opacity: 0.66;
}

.password-strength {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    margin-top: 0.55rem;
}

.strength-bar {
    height: 7px;
    border-radius: 999px;
    background: #e8eef6;
    overflow: hidden;
}

.strength-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 0.2s ease, background 0.2s ease;
}

.strength-fill.weak {
    background: #ef4444;
}

.strength-fill.medium {
    background: #f59e0b;
}

.strength-fill.strong {
    background: #10b981;
}

.strength-text {
    min-width: 88px;
    color: #667085;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: right;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475467;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-wrapper input {
    accent-color: #2563eb;
}

.forgot-link {
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-error-message {
    display: none;
    margin: -0.15rem 0 0.75rem;
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.login-error-message.show {
    display: block;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.slider-captcha-container {
    margin-bottom: 1.1rem;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.slider-captcha-box {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border: 1px solid #d8e1ec;
    border-radius: 14px;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    background: #f3f7fc;
}

.slider-captcha-box.success {
    border-color: #10b981;
}

.slider-captcha-box.fail {
    border-color: #ef4444;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.slider-block {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 120px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    cursor: default;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.slider-block.dragging {
    box-shadow: none;
}

.slider-block img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.slider-drag-track {
    position: relative;
    display: none;
    align-items: center;
    width: 100%;
    height: 38px;
    margin-top: 10px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #d8e1ec;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.slider-drag-track::after {
    content: "拖动箭头完成拼图";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    pointer-events: none;
}

.slider-drag-progress {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.04));
    pointer-events: none;
}

.slider-drag-handle {
    position: absolute;
    left: 0;
    top: 3px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
    cursor: grab;
}

.slider-drag-handle::before {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.slider-drag-handle.dragging {
    cursor: grabbing;
    background: #2563eb;
    color: #fff;
}

.slider-captcha-box.success + .slider-drag-track .slider-drag-handle {
    background: #10b981;
    color: #fff;
}

.slider-captcha-box.fail + .slider-drag-track .slider-drag-handle {
    background: #ef4444;
    color: #fff;
}

.slider-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 3;
}

.slider-captcha-box.success .slider-hint {
    color: #10b981;
}

.slider-captcha-box.success .slider-hint::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.35rem;
}

.slider-captcha-box.fail .slider-hint {
    color: #ef4444;
}

.slider-captcha-box.fail .slider-hint::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.35rem;
}

.slider-status {
    margin-top: 0.35rem;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

.lock-message {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #fed7d7;
    border-radius: 14px;
    background: #fff5f5;
    color: #c53030;
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .admin-login-main {
        grid-template-columns: 1fr;
    }

    .admin-login-hero {
        display: none;
    }

    .admin-login-panel {
        justify-content: center;
        padding: 1rem 1rem 1.5rem;
    }

    .admin-login-card {
        width: min(100%, 520px);
    }

    .admin-login-footer {
        min-height: 112px;
        padding: 1rem 1rem 1.35rem;
    }
}

@media (max-width: 640px) {
    .admin-login-header {
        padding: 0.8rem 1rem;
        justify-content: center;
    }

    .admin-login-panel {
        padding: 0.85rem 0.85rem 1rem;
    }

    .admin-login-card {
        padding: 1.25rem;
        border-radius: 22px;
    }

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

    .verify-code-wrapper {
        grid-template-columns: 1fr;
    }

    .password-strength {
        grid-template-columns: 1fr;
    }

    .strength-text {
        text-align: left;
    }

    .admin-login-footer {
        min-height: 120px;
        padding: 1.1rem 0.85rem 1.5rem;
    }

    .footer-block {
        text-align: center;
    }
}
