/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}

/* ================================
   登录页面专用样式 - Login Page
   ================================ */

.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow: hidden;
}

.login-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1a6b8f 100%);
    overflow: hidden;
}

.login-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(64, 196, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 168, 64, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.login-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
    color: #ffffff;
}

.login-logo-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.login-subtitle {
    font-size: 13px;
    font-weight: 300;
    margin: 0;
    opacity: 0.75;
    letter-spacing: 0.5px;
}

.login-card {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.login-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: #1a2b4c;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef1f6;
}

.login-alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid #f5c6cb;
    background-color: #fef0f0;
    color: #c0392b;
}

.login-error-text {
    display: block;
    line-height: 1.5;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.login-input-icon {
    color: #667eea;
    flex-shrink: 0;
}

.login-input {
    width: 100% !important;
    max-width: 100% !important;
    height: 44px;
    padding: 0 14px 0 42px;
    font-size: 14px;
    line-height: 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f8fafc;
    color: #2d3748;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background-repeat: no-repeat;
    background-position: 14px center;
}

.login-form-group:nth-of-type(1) .login-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
}

.login-form-group:nth-of-type(2) .login-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
}

.login-form-group:nth-of-type(3) .login-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2 4-4'%3E%3C/path%3E%3Cpath d='M21 12c0 4.97-4.03 9-9 9s-9-4.03-9-9 4.03-9 9-9c2.39 0 4.55.94 6.16 2.47'%3E%3C/path%3E%3C/svg%3E");
}

.login-input:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.login-captcha-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.login-captcha-input {
    flex: 1;
}

.login-captcha-image {
    width: 130px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    object-fit: cover;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}

.login-captcha-image:hover {
    border-color: #667eea;
}

.login-validator {
    display: block;
    font-size: 12px;
    color: #e53e3e;
    margin-top: 6px;
    line-height: 1.4;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    margin-top: -4px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.login-checkbox {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

.login-checkbox-label {
    font-size: 13px;
    color: #4a5568;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.login-forgot-link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-forgot-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 46px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.login-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #a0aec0;
}

.login-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.login-divider em {
    padding: 0 16px;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
}

.login-footer-text {
    text-align: center;
}

.login-footer-text p {
    margin: 0;
    font-size: 13px;
    color: #718096;
}

.login-register-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-register-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.login-page-footer {
    margin-top: 28px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.login-page-footer p {
    margin: 4px 0;
    font-size: 12px;
    line-height: 1.6;
}

.login-page-footer-sub {
    opacity: 0.75;
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px 16px;
    }

    .login-card {
        padding: 28px 20px 24px;
        border-radius: 14px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-logo-icon {
        width: 60px;
        height: 60px;
    }
}

