/* 登录注册页面样式 - 深色现代风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.auth-box {
    background: rgba(40, 40, 60, 0.95);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #a0a0b0;
    font-size: 0.95rem;
}

.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1.25rem;
    color: #667eea;
    font-size: 1.1rem;
    z-index: 1;
}

.input-with-icon input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-with-icon input::placeholder {
    color: #808090;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label span {
    color: #a0a0b0;
    font-size: 0.9rem;
}

.link-text {
    color: #a0a0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-text:hover {
    color: #667eea;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-submit:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: #a0a0b0;
    font-size: 0.9rem;
    margin: 0.75rem 0;
}

.link-primary {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: #764ba2;
}

.tip-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #808090;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.tip-text i {
    color: #667eea;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a0b0;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-home:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.alert i {
    font-size: 1.2rem;
}

.alert-error {
    background: rgba(234, 67, 53, 0.15);
    border: 1px solid rgba(234, 67, 53, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(52, 168, 83, 0.15);
    border: 1px solid rgba(52, 168, 83, 0.3);
    color: #51cf66;
}

/* 验证码样式（如需要） */
.captcha-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.captcha-group input {
    flex: 1;
}

.captcha-image {
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 640px) {
    .auth-box {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-box {
    animation: fadeIn 0.5s ease-out;
}

/* 输入验证状态 */
input:invalid:not(:placeholder-shown) {
    border-color: rgba(234, 67, 53, 0.5);
}

input:valid:not(:placeholder-shown) {
    border-color: rgba(52, 168, 83, 0.5);
}
