/* 确保整个页面没有溢出的边距 */
body, html {
    margin: 0;
    padding: 0;
}

/* 针对 base.html 中 content-wrapper 的修正 */
.content-wrapper {
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important; /* 覆盖之前 global.css 里的 padding-bottom: 50px */
}

/* 确保 footer 紧贴上方，没有上外边距 */
.edu-footer {
    margin-top: 0 !important;
}

/* 1. 复用注册页的深灰背景包装器 */
.login-page-wrapper {
    background: radial-gradient(circle at 50% 50%, #2c313a 0%, #1a1d23 100%);
    min-height: calc(100vh - 60px); /* 减去 header 高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin: 0 !important; /* 消除白色间隙的关键 */
}

/* 2. 登录容器：精致白卡片 */
.login-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 45px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); /* 深背景下的重阴影 */
    position: relative;
    z-index: 1;
}

/* 3. 头部图标与标题 */
.login-header-icon {
    background: #1d62f0; /* 统一使用你注册页的品牌蓝 */
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(29, 98, 240, 0.2);
}

.login-card h2 {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    text-align: center;
}

.login-subtext {
    color: #8c8c8c;
    font-size: 15px;
    text-align: center;
    margin-bottom: 40px;
    display: block;
}

/* 4. 表单元素对齐注册页样式 */
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #434343;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #bfbfbf;
    font-size: 16px;
    transition: color 0.3s;
}

.form-group input {
    width: 100%;
    padding: 14px 16px 14px 45px; /* 左侧留出图标空间 */
    background-color: #f5f7f9;
    border: 1.5px solid #eee;
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 15px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-group input:focus {
    background-color: #fff;
    border-color: #1d62f0;
    box-shadow: 0 0 0 4px rgba(29, 98, 240, 0.08);
}

.form-group input:focus + i {
    color: #1d62f0;
}

/* 5. 密码切换图标 */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #bfbfbf;
    cursor: pointer;
    padding: 5px;
    z-index: 2;
}

/* 6. 提交按钮：精致黑 (对齐注册页按钮) */
.btn-submit {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border-radius: 12px;
    height: 54px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #333;
    transform: translateY(-1px);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
    color: #8c8c8c;
}

.login-footer a {
    color: #1d62f0;
    text-decoration: none;
    font-weight: 600;
}