/* 登录注册页面通用样式 */
.auth-container {
    display: flex;
    width: 900px;
    min-height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px auto;
}

.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

.welcome-text h1 {
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.welcome-text p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.features {
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feature-item i {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 12px;
}

.right-panel {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 8px;
}

.logo p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    z-index: 2;
}

.form-control {
    width: 100%;
    max-width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    box-sizing: border-box;
    z-index: 1;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.btn-primary {
    background: linear-gradient(135deg, #4285f4 0%, #3474e3 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e1e5e9;
    color: #666;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
    color: #999;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
    z-index: 1;
}

.divider span {
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.password-strength {
    height: 5px;
    background: #eee;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.strength-weak { 
    background: #ff4757; 
    width: 33%; 
}
.strength-medium { 
    background: #ffa502; 
    width: 66%; 
}
.strength-strong { 
    background: #2ed573; 
    width: 100%; 
}

.password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.password-requirements.show {
    display: block;
}

/* 管理员登录页面样式 */
.admin-body {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

.admin-login-card {
    width: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 20px auto;
}

.admin-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71, #3498db);
}

.shield-icon {
    font-size: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.security-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 25px 0;
    text-align: left;
    font-size: 13px;
    color: #7f8c8d;
}

.security-info ul {
    margin-top: 10px;
    padding-left: 20px;
}

.security-info li {
    margin-bottom: 5px;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        height: auto;
        width: 90%;
    }
    
    .left-panel {
        padding: 40px 20px;
    }
    
    .right-panel {
        padding: 40px 20px;
    }
}

@media (max-width: 500px) {
    .admin-login-card {
        width: 90%;
        padding: 40px 25px;
    }
}

/* 单列布局样式 */
.auth-container.single-column {
    width: 100%;
    max-width: 500px;
    min-height: auto;
    margin: 40px auto;
    box-sizing: border-box;
}

.auth-container.single-column .left-panel {
    display: none;
}

.auth-container.single-column .right-panel {
    flex: 1;
    padding: 50px 40px;
    width: 100%;
    box-sizing: border-box;
}

/* 移动端适配样式 */
@media screen and (max-width: 768px) {
    .auth-container {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .left-panel {
        display: none;
    }
    
    .right-panel {
        padding: 30px 20px;
    }
    
    .form-container {
        padding: 0 10px;
    }
    
    .logo h2 {
        font-size: 24px;
    }
    
    .form-control {
        padding: 12px 12px 12px 40px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .btn {
        padding: 14px;
        font-size: 16px;
    }
    
    .auth-container.single-column {
        height: 100vh;
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .auth-container.single-column .right-panel {
        padding: 30px 20px;
    }
}

/* iPhone适配 */
@media screen and (max-width: 414px) {
    .right-panel {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .logo h2 {
        font-size: 22px;
    }
    
    .form-control {
        padding: 15px 15px 15px 45px;
    }
}

/* iOS安全区域适配 */
@supports (bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}