/* ------------------------------
   页面整体设置：渐变背景 + 全局字体
   ------------------------------ */
:root {
    /* 主题色定义，便于后续维护 */
    --primary-blue: #0f75ff;
    --primary-blue-dark: #0059d6;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.15);
    --text-color: #1a1a1a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background: linear-gradient(180deg, #1976ff 0%, #d8ecff 100%);
}

/* 隐藏文本但保留可访问性 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ------------------------------
   主体布局
   ------------------------------ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-panel {
    width: min(560px, 100%);
    background: transparent;
    text-align: center;
}

.login-header .system-name {
    margin: 0 0 40px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    color: #fff;
    letter-spacing: 4px;
}

/* ------------------------------
   表单样式
   ------------------------------ */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-item input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: #1a1a1a; /* 添加这行 - 使用跟"记住我"一样的黑色 */
}

.form-item input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.form-item input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(15, 117, 255, 0.15);
    outline: none;
}

.remember-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
}

.remember-row input[type='checkbox'] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.submit-btn {
    margin-top: 12px;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 28px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(0, 89, 214, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}
/*登录按钮样式*/
/*.submit-btn {*/
/*    display: inline-block;*/
/*    padding: 10px 20px;*/
/*    background-color: #007BFF;*/
/*    color: white;*/
/*    text-decoration: none;*/
/*    border: none;*/
/*    border-radius: 5px;*/
/*    cursor: pointer;*/
/*}*/

/*.submit-btn:hover {*/
/*    background-color: #0056b3;*/
/*}*/

/* ------------------------------
   底部协议说明
   ------------------------------ */
.login-footer {
    margin-top: 24px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.72);
}

.agreement {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font-size: inherit;
}

.agreement input[type='checkbox'] {
    width: 16px;
    height: 16px;
}

/* ------------------------------
   响应式适配：窄屏增加内边距
   ------------------------------ */
@media (max-width: 480px) {
    .login-panel {
        width: 100%;
    }

    .login-header .system-name {
        letter-spacing: 2px;
    }

    .submit-btn {
        font-size: 18px;
    }
}

     /* 添加一些额外的样式 */
 .error-message {
     color: #ff4d4f;
     font-size: 14px;
     margin-top: 8px;
     text-align: center;
     display: none;
 }

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 验证码区域样式 */
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input {
    flex: 1;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
}

.captcha-input:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

.captcha-img {
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #dcdfe6;
    background-color: #f5f5f5;
}

.captcha-img:hover {
    opacity: 0.8;
}

.captcha-img.loading {
    opacity: 0.5;
}

.refresh-btn {
    padding: 8px 12px;
    background-color: #f5f7fa;
    color: #606266;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.refresh-btn:hover {
    background-color: #e4e7ed;
    color: #409eff;
    border-color: #c6e2ff;
}

/* 验证码提示文字 */
.captcha-tip {
    font-size: 12px;
    color: #909399;
    margin-top: 4px;
    text-align: right;
}
