
/* Modern Login Design */
body {
    background: #f3f4f6;
    background-image: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 40px;
    margin: 20px;
    transition: transform 0.3s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 48px;
    color: #3b82f6; /* Modern Blue */
    margin-bottom: 15px;
    background: #eff6ff;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 5px 0;
}

.login-header p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background-color: #fff;
    box-sizing: border-box; /* 修复宽度溢出 */
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* 验证码区域优化 */
.captcha-box {
    display: flex;
    gap: 10px;
}

.captcha-box input {
    flex: 1;
}

.captcha-box img {
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #d1d5db;
    transition: opacity 0.2s;
}
.captcha-box img:hover {
    opacity: 0.8;
}

.btn-login {
    width: 100%;
    height: 44px;
    background-color: #3b82f6;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
}

.btn-login:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.6);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    margin-right: 8px;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }

.text-muted {
    color: #9ca3af !important;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.text-muted:hover {
    color: #3b82f6 !important;
}

/* 移动端适配 */
@media (max-width: 480px) {
    body {
        background: #fff;
        align-items: flex-start; /* 手机上靠上对齐 */
        padding-top: 40px;
    }
    .login-box {
        padding: 30px 20px;
        box-shadow: none;
        margin: 0;
        max-width: 100%;
    }
    .login-header i {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 32px;
    }
}
