/* 登录/注册/忘记密码页面样式 */

.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-page-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-page-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 24px;
}

.auth-logo img {
    height: 40px;
    width: auto;
}

.auth-logo span {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* 表单样式 */
.auth-form {
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    color: #1a1a1a;
    transition: all 0.2s;
    background: #fafafa;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #0066FF;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.input-wrapper input::placeholder {
    color: #999;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrapper input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: #0066FF;
}

/* 验证码输入 */
.input-with-btn {
    display: flex;
    gap: 12px;
}

.input-with-btn .input-wrapper {
    flex: 1;
}

.input-with-btn .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* 登录方式切换 */
.login-type-switch {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    flex: 1;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: #ccc;
}

.radio-label.active {
    border-color: #0066FF;
    background: rgba(0, 102, 255, 0.05);
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.radio-label.active .radio-custom {
    border-color: #0066FF;
}

.radio-label.active .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #0066FF;
    border-radius: 50%;
}

.radio-text {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.radio-label.active .radio-text {
    color: #0066FF;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: white;
    color: #0066FF;
    border: 2px solid #0066FF;
}

.btn-outline:hover {
    background: #0066FF;
    color: white;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 表单操作区 */
.form-actions {
    margin-top: 32px;
}

.form-footer {
    text-align: right;
    margin-top: 16px;
}

.forgot-link {
    font-size: 14px;
    color: #0066FF;
    text-decoration: none;
    font-weight: 500;
}

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

.form-terms {
    text-align: center;
    margin-top: 16px;
}

.form-terms p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.form-terms a {
    color: #0066FF;
    text-decoration: none;
}

.form-terms a:hover {
    text-decoration: underline;
}

/* 分隔线 */
.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e5e5;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    font-size: 14px;
    color: #999;
}

/* 特性展示 */
.auth-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
}

.feature-item svg {
    opacity: 0.9;
}

.feature-item span {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

/* Toast 提示 */
.auth-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.auth-toast.show {
    transform: translateX(-50%) translateY(0);
}

.auth-toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.auth-toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* 响应式 */
@media (max-width: 480px) {
    .auth-page-wrapper {
        padding: 20px;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .login-type-switch {
        flex-direction: column;
        gap: 12px;
    }
    
    .input-with-btn {
        flex-direction: column;
    }
    
    .input-with-btn .btn {
        width: 100%;
    }
    
    .auth-features {
        gap: 20px;
    }
    
    .feature-item span {
        font-size: 12px;
    }
}
