/* 现代化认证页面样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* 全屏认证容器 */
.modern-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* 动态背景 */
.modern-auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 10%, rgba(75, 0, 130, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10px, -10px) scale(1.05); }
}

/* 主卡片容器 */
.auth-main-card {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    min-height: 600px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    overflow: hidden;
    display: flex;
    backdrop-filter: blur(10px);
}

/* 左侧装饰面板 */
.auth-left-panel {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.auth-logo i {
    font-size: 80px;
    color: white;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.auth-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-left-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-left-content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 15px;
}

.auth-features {
    position: relative;
    z-index: 1;
    margin-top: 50px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.feature-item i {
    font-size: 24px;
    margin-right: 15px;
    opacity: 0.9;
}

/* 右侧表单面板 */
.auth-right-panel {
    flex: 1;
    padding: 60px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.auth-form-header {
    margin-bottom: 40px;
}

.auth-form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.auth-form-header p {
    font-size: 16px;
    color: #666;
}

/* 表单样式 */
.modern-form-group {
    margin-bottom: 25px;
}

.modern-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.modern-form-group label i {
    margin-right: 8px;
    color: #667eea;
}

.modern-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.modern-input::placeholder {
    color: #aaa;
}

/* 记住我 */
.remember-me-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.remember-me-wrapper label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

/* 按钮样式 */
.modern-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modern-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.modern-btn-primary:active {
    transform: translateY(0);
}

/* 分隔线 */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #999;
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 15px;
}

/* 底部链接 */
.auth-bottom-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-link i {
    margin-right: 5px;
}

/* Toast通知 */
.modern-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modern-toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modern-toast.toast-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.modern-toast.toast-error {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.modern-toast i {
    font-size: 20px;
}

/* 验证错误 */
.field-validation-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.validation-summary-errors {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

.validation-summary-errors li {
    color: #856404;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .auth-main-card {
        flex-direction: column;
        max-width: 600px;
    }
    
    .auth-left-panel {
        padding: 40px 30px;
        min-height: 300px;
    }
    
    .auth-left-content h1 {
        font-size: 32px;
    }
    
    .auth-features {
        display: none;
    }
    
    .auth-right-panel {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .auth-main-card {
        width: 95%;
        margin: 20px;
    }
    
    .auth-right-panel {
        padding: 30px 20px;
    }
    
    .auth-form-header h2 {
        font-size: 26px;
    }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 输入框图标 */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-with-icon .modern-input {
    padding-left: 50px;
}

/* 密码显示/隐藏按钮 */
.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #667eea;
}


/* 验证码输入组 */
.verification-code-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.verification-code-group .input-with-icon {
    flex: 1;
}

.send-code-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 130px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.send-code-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.send-code-btn:active:not(:disabled) {
    transform: translateY(0);
}

.send-code-btn:disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

.send-code-btn i {
    margin-right: 5px;
}

/* 验证码输入框样式 */
#VerificationCode {
    letter-spacing: 5px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* 响应?- 验证码组 */
@media (max-width: 768px) {
    .verification-code-group {
        flex-direction: column;
    }
    
    .send-code-btn {
        width: 100%;
        min-width: auto;
    }
}
