*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    color: #333;
    background-color: #2a9d8f;
    background-image: url("/static/admin/images/admin_login_bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 56px;
}

.login-card {
    width: 400px;
    max-width: 100%;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    padding: 42px 40px 36px;
}

.login-title {
    margin: 0 0 32px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #2aa89a;
    line-height: 1.4;
}

.login-field {
    position: relative;
    margin-bottom: 18px;
}

.login-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 18px;
    height: 18px;
    color: #bfbfbf;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.login-page .login-field .layui-input,
.login-page input.layui-input {
    height: 42px;
    line-height: 42px;
    width: 100%;
    padding: 0 12px 0 38px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-shadow: none;
}

.login-page .login-field .layui-input::placeholder,
.login-page input.layui-input::placeholder {
    color: #bfbfbf;
}

.login-page .login-field .layui-input:hover,
.login-page input.layui-input:hover {
    border-color: #40a9ff;
}

.login-page .login-field .layui-input:focus,
.login-page input.layui-input:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.12);
}

.login-captcha-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
}

.login-captcha-row .login-field {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

.login-captcha-img {
    width: 118px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fafafa;
    cursor: pointer;
    object-fit: cover;
}

.login-turnstile {
    margin-bottom: 18px;
}

.login-keep {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 16px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.login-keep input[type="checkbox"] {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #1890ff;
    cursor: pointer;
    appearance: auto;
}

.login-btn {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: 8px;
    border: none;
    border-radius: 4px;
    background: #1890ff;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-btn:hover {
    background: #40a9ff;
}

.login-btn:active {
    background: #096dd9;
}

.login-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
    text-align: center;
    line-height: 30px;
    padding-bottom: 10px;
    text-shadow: #000 0.1em 0.1em 0.1em;
    font-size: 14px;
    pointer-events: none;
}

.login-footer a,
.login-footer span {
    color: rgba(255, 255, 255, 0.9);
}

.login-footer a {
    pointer-events: auto;
}

.padding-5 {
    padding: 5px !important;
}

@media (max-width: 480px) {
    body {
        overflow: auto;
    }

    .login-card {
        padding: 32px 22px 28px;
    }

    .login-title {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .login-captcha-img {
        width: 100px;
    }
}
