/* 登录页样式（原 index.php 内联 <style>，外置为独立静态资源） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a73e8 0%, #0047b3 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    z-index: 0;
}
body::before {
    width: 500px;
    height: 500px;
    top: -180px;
    right: -180px;
}
body::after {
    width: 350px;
    height: 350px;
    bottom: -120px;
    left: -120px;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    min-height: 75vh;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

/* 左侧班级区域 */
.left-card {
    flex: 2;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.left-card:hover {
    box-shadow: 0 10px 36px rgba(26, 115, 232, 0.25);
}

/* 校徽 */
.logo-box {
    text-align: center;
    margin-bottom: 2.5rem;
}
.logo-box img {
    width: 120px;
    height: auto;
    object-fit: contain;
}

/* 班级列表 */
.grade-group {
    margin-bottom: 1.6rem;
}
.grade-title {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
}
.class-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 0.8rem;
}
.class-item {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.9rem 0.5rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    font-size: 1.15rem;
    font-weight: 600;
}
.class-item:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}
.class-empty {
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 2rem 0;
    font-size: 1rem;
}

/* 右侧登录区域 */
.right-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.login-title {
    color: #ffffff;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* 角色选择按钮 */
.role-group {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.role-group button {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}
.role-group button.active {
    background: rgba(255, 255, 255, 0.95);
    color: #1a73e8;
    border: 2px solid #ffffff;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.login-form input {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}
.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.login-form input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
}

/* 登录按钮：半透明白边框 */
.login-btn {
    margin-top: 0.8rem;
    padding: 1rem;
    background: #1a73e8;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}
.login-btn:hover {
    background: #0d5fc9;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.error-tip {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.login-info {
    text-align: center;
    color: #fff;
    line-height: 1.8;
}
.login-info a {
    color: #a8d1ff;
    text-decoration: none;
}
.login-info a:hover {
    text-decoration: underline;
}

/* 备案底部样式 */
.footer-bottom {
    width: 100%;
    text-align: center;
    padding:30px 10px 15px;
    color:rgba(255,255,255,0.7);
    font-size:13px;
    margin-top:40px;
}
.footer-bottom a {
    color:rgba(255,255,255,0.8);
    text-decoration:none;
    margin:0 8px;
}
.footer-bottom a:hover {
    text-decoration: underline;
}

/* 移动端竖排 */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        min-height: auto;
    }
    .left-card, .right-card {
        flex: none;
        width: 100%;
    }
    body {
        padding: 1rem;
    }
}
