/* 认证页面样式 */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1a3c7e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.auth-header .logo i {
    font-size: 40px;
}

.auth-header .logo h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.auth-header .tagline {
    font-size: 14px;
    opacity: 0.9;
    margin: 10px 0 0 0;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 18px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    color: #2c5aa0;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #2c5aa0;
    border-radius: 3px 3px 0 0;
}

.auth-form {
    padding: 30px;
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group label i {
    color: #666;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-group input.error {
    border-color: #f44336;
}

.form-group input.success {
    border-color: #4CAF50;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
}

.toggle-password:hover {
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
}

.checkbox input[type="checkbox"]:checked {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
}

.forgot-password {
    font-size: 14px;
    color: #2c5aa0;
    text-decoration: none;
}

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

.terms {
    margin: 25px 0;
}

.terms-link {
    color: #2c5aa0;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #999;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    padding: 0 15px;
    font-size: 14px;
}

.quick-login {
    text-align: center;
}

.quick-login p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.demo-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    border-radius: 2px;
    margin-bottom: 4px;
    transition: width 0.3s;
}

.strength-bar.very-weak {
    width: 20%;
    background: #f44336;
}

.strength-bar.weak {
    width: 40%;
    background: #ff9800;
}

.strength-bar.medium {
    width: 60%;
    background: #ffc107;
}

.strength-bar.strong {
    width: 80%;
    background: #8bc34a;
}

.strength-bar.very-strong {
    width: 100%;
    background: #4CAF50;
}

.strength-text {
    font-size: 12px;
    color: #666;
}

.password-match {
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.password-match.match {
    color: #4CAF50;
}

.password-match.mismatch {
    color: #f44336;
}

.alert {
    margin: 20px 30px 0 30px;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.auth-footer .disclaimer {
    margin-top: 8px;
    color: #999;
    font-size: 11px;
}

@media (max-width: 480px) {
    .auth-container {
        border-radius: 12px;
    }
    
    .auth-header {
        padding: 20px;
    }
    
    .auth-header .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-header .logo h1 {
        font-size: 20px;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}