/* 账号认证页面样式 - 登录/注册/找回密码 */

/* 重置body样式，确保全屏 */
body {
    margin: 0;
    padding: 0;
}

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /*position: fixed;*/
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

.auth-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    padding: 40px 32px;
    margin: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    height: 48px;
    margin-bottom: 16px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: #999;
}

/* 标签页切换 */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 24px;
    gap: 0;
}

.auth-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
}

.auth-tab:hover {
    color: #667eea;
}

.auth-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* 表单容器 */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.code-input-group {
    display: flex;
    gap: 12px;
}

.code-input-group .form-input {
    flex: 1;
}

.captcha-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input {
    flex: 1;
    min-width: 0;
}

.captcha-image {
    height: 40px;
    width: 120px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s;
}

.captcha-image:hover {
    opacity: 0.8;
}

.refresh-btn {
    width: 40px;
    height: 40px;
    background: #f5f7fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: #667eea;
    color: white;
    transform: rotate(180deg);
}

.send-code-btn {
    height: 48px;
    padding: 0 20px;
    background: #f5f7fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.send-code-btn:hover:not(:disabled) {
    background: #e8ecf0;
    border-color: #667eea;
    color: #667eea;
}

.send-code-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.submit-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-tips {
    margin-top: 24px;
    padding: 12px;
    background: #f5f7fa;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.auth-tips strong {
    color: #667eea;
}

.back-home {
    display: inline-block;
    margin-top: 24px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.back-home:hover {
    color: #764ba2;
}

.error-message {
    color: #f56c6c;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.success-message {
    color: #67c23a;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.footer .container {
    color: white;
}

.password-strength {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.password-strength.weak {
    color: #f56c6c;
}

.password-strength.medium {
    color: #e6a23c;
}

.password-strength.strong {
    color: #67c23a;
}

.form-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

.form-link a {
    color: #667eea;
    text-decoration: none;
    cursor: pointer;
}

.form-link a:hover {
    text-decoration: underline;
}
