/* 认证页面专用样式 - Apple 登录界面风格 */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(90, 200, 250, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card {
    background: var(--surface-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-large);
    padding: 64px 48px;
    box-shadow: 0 20px 48px var(--shadow-medium);
    width: 100%;
    max-width: 440px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(0,0,0,0.05));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

.logo {
    font-size: 64px;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.auth-card h1,
.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 17px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 17px;
}

.form-group input {
    width: 100%;
    padding: 20px 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-medium);
    font-size: 17px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

.btn-full {
    width: 100%;
    margin-bottom: 24px;
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 600;
    min-height: 56px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.error-message {
    color: var(--accent-color);
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    padding: 16px 20px;
    border-radius: var(--radius-medium);
    margin-bottom: 24px;
    display: none;
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.4s ease-out;
}

.success-message {
    color: #34C759;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.2);
    padding: 16px 20px;
    border-radius: var(--radius-medium);
    margin-bottom: 24px;
    display: none;
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.4s ease-out;
}

.auth-links {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.auth-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-medium);
    transition: all 0.3s ease;
    background: rgba(0, 122, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.auth-links a:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.2);
    transform: translateY(-1px);
}

/* 特殊表单元素 */
.form-group-inline {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border-light);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-color: var(--primary-blue);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-wrapper label {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* 社交登录按钮（如果需要） */
.social-buttons {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-light);
}

.btn-social-icon {
    width: 20px;
    height: 20px;
}

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

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.divider span {
    background: var(--surface-light);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        padding: 24px 16px;
    }
    
    .auth-card {
        padding: 48px 32px;
        max-width: 380px;
    }
    
    .auth-card h1,
    .auth-title {
        font-size: 28px;
    }
    
    .form-group input {
        padding: 18px 20px;
        font-size: 16px;
    }
    
    .btn-full {
        padding: 18px 20px;
        font-size: 16px;
        min-height: 52px;
    }
    
    .auth-links {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 16px 12px;
    }
    
    .auth-card {
        padding: 40px 24px;
        max-width: 340px;
    }
    
    .logo {
        font-size: 48px;
    }
    
    .auth-card h1,
    .auth-title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 15px;
    }
    
    .form-group input {
        padding: 16px 18px;
        font-size: 16px;
    }
    
    .btn-full {
        padding: 16px 18px;
        font-size: 15px;
        min-height: 48px;
    }
}

/* 特殊状态 */
.auth-card.loading {
    pointer-events: none;
    opacity: 0.8;
}

.form-group.error input {
    border-color: var(--accent-color);
    background: rgba(255, 59, 48, 0.05);
}

.form-group.success input {
    border-color: #34C759;
    background: rgba(52, 199, 89, 0.05);
} 