
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

/* 主容器布局 */
.container {
    display: flex;
    height: 100vh;
}

/* 左侧面板 */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #051364 0%, #6b79c7 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 80%;
}

.content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 右侧面板 */
.right-panel {
    width: 450px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
}

.login-form {
    width: 100%;
    max-width: 350px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    color: #051364;
}

.logo i {
    font-size: 2rem;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* 输入组样式 */
.input-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i:first-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.input-wrapper .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #654ea3;
    box-shadow: 0 0 0 3px rgba(101, 78, 163, 0.1);
}

/* 选项区域 */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #654ea3;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: #051364;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #051364, #6b79c7);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    background: linear-gradient(to right, #051364, #6b79c7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(101, 78, 163, 0.3);
}

/* 分割线 */
.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 15px;
    color: #777;
    font-size: 0.9rem;
}

/* SSO按钮 */
.sso-btn {
    width: 100%;
    padding: 14px;
    background: white;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sso-btn:hover {
    background: #f9f9f9;
    border-color: #bbb;
}

/* 注册链接 */
.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #666;
}

.signup-link a {
    color: #051364;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .left-panel {
        display: none;
    }
    
    .right-panel {
        width: 100%;
    }
}
