/* 认证页面样式 */

/* 主要内容区域 */
.auth-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
}

/* 认证表单容器 */
.auth-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D42A3C 0%, #FF6B6B 100%);
}

/* 认证头部 */
.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

/* 表单样式 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus {
    outline: none;
    border-color: #D42A3C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 42, 60, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* 密码输入框 */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    font-size: 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background: #f0f0f0;
    color: #D42A3C;
}

.eye-icon {
    display: block;
    width: 20px;
    height: 20px;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: #D42A3C;
    border-color: #D42A3C;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 2px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    font-size: 14px;
    color: #D42A3C;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.auth-submit-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #D42A3C 0%, #B8222E 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 42, 60, 0.3);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 认证链接 */
.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-links p {
    color: #666;
    font-size: 14px;
}

.auth-links a {
    color: #D42A3C;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* 第三方登录 */
.third-party-login {
    margin-top: 30px;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
}

.divider span {
    background: #fff;
    color: #999;
    font-size: 12px;
    padding: 0 15px;
    position: relative;
}

.social-login {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    height: 44px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #D42A3C;
    color: #D42A3C;
    transform: translateY(-1px);
}

.social-btn img {
    width: 20px;
    height: 20px;
}

/* 错误信息 */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    min-height: 18px;
}

.form-group.error input {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.form-group.error input:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* 成功消息 */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.success-content {
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    animation: successPulse 0.6s ease-out;
}

.success-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.success-content p {
    color: #666;
    font-size: 14px;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 输入验证样式 */
.form-group.success input {
    border-color: #4CAF50;
    background-color: #f8fff8;
}

.form-group.success input:focus {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 性别选择（注册页面用） */
.gender-select {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.gender-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.gender-option input[type="radio"] {
    display: none;
}

.gender-option .radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.gender-option input[type="radio"]:checked + .radio-mark {
    border-color: #D42A3C;
}

.gender-option input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: #D42A3C;
    border-radius: 50%;
}

/* 验证码输入 */
.verification-input {
    display: flex;
    gap: 10px;
}

.verification-input input {
    flex: 1;
}

.send-code-btn {
    height: 48px;
    padding: 0 20px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.send-code-btn:hover {
    border-color: #D42A3C;
    color: #D42A3C;
}

.send-code-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.send-code-btn.countdown {
    color: #999;
    cursor: not-allowed;
}