/* 登录页面样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-image: url('/views/Assets/1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    backdrop-filter: blur(5px); /* 添加背景模糊效果，增强层次感 */
}

.login-container {
    background-color: rgba(255, 255, 255, 0.95); /* 半透明背景，增强与背景图的融合 */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 更柔和的阴影 */
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.login-container:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15); /* 悬停时增强阴影效果 */
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    color: #2d3748; /* 深灰色，更现代的配色 */
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: #718096; /* 柔和的灰色，与主标题形成对比 */
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.5;
}

/* 温馨提示样式 */
.login-notice {
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 20px;
    margin-bottom: 0;
}

.login-notice p {
    margin: 0;
    color: #2b6cb0;
    font-size: 13px;
    line-height: 1.5;
}

.login-notice a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-notice a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* 模态框样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 9999; /* 确保在最上层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    backdrop-filter: blur(3px); /* 背景模糊效果 */
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modal-header {
    background-color: #4299e1;
    color: white;
    padding: 20px;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}

.modal-body p {
    margin: 0 0 20px 0;
    color: #4a5568;
    font-size: 16px;
}

/* 加载动画 */
.modal-loading {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568; /* 柔和的灰色 */
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background-color: #f7fafc;
    color: #2d3748;
}

.form-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    background-color: white;
    transform: translateY(-1px); /* 轻微上浮效果 */
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-login:active {
    background-color: #2b6cb0;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.2);
}

.btn-login:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    background-color: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid #c53030;
}

.success-message {
    background-color: #c6f6d5;
    color: #22543d;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid #22543d;
}

/* 页脚样式 */
.login-footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 400;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.login-footer p {
    margin: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-footer p:hover {
    opacity: 1;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 300;
}