/* ========================================
   AI算命系统 - 认证页面样式
   ======================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.auth-box {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: var(--border-gold);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-dark);
}

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

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    text-decoration: none;
}

.auth-logo i {
    font-size: 40px;
    color: var(--gold-primary);
}

.auth-logo span {
    font-size: 24px;
    font-weight: bold;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

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

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > i:first-child {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
}

.input-field {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--secondary-dark);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.input-field::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--gold-primary);
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(212, 168, 83, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '✓';
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    font-size: 14px;
    color: var(--gold-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--gold-light);
}

/* 分隔线 */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(212, 168, 83, 0.2);
}

.auth-divider span {
    padding: 0 16px;
}

/* 社交登录 */
.social-login {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 83, 0.3);
    background: var(--secondary-dark);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.social-btn.wechat:hover {
    color: #07C160;
    border-color: #07C160;
}

.social-btn.qq:hover {
    color: #12B7F5;
    border-color: #12B7F5;
}

.social-btn.weibo:hover {
    color: #E6162D;
    border-color: #E6162D;
}

/* 页脚 */
.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 装饰元素 */
.auth-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icons {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-icons i {
    position: absolute;
    color: rgba(212, 168, 83, 0.1);
    font-size: 60px;
}

.icon-1 {
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.icon-2 {
    top: 20%;
    right: 15%;
    animation: float 5s ease-in-out infinite 1s;
}

.icon-3 {
    bottom: 20%;
    left: 15%;
    animation: float 7s ease-in-out infinite 2s;
}

.icon-4 {
    bottom: 10%;
    right: 10%;
    animation: float 4s ease-in-out infinite 0.5s;
}

/* 语言选择器 */
.lang-selector-fixed {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
}

.lang-selector-fixed select {
    background: var(--card-bg);
    border: var(--border-gold);
    color: var(--gold-primary);
    padding: 8px 32px 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4a853' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

/* 条款同意 */
.terms-agree {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.terms-agree a {
    color: var(--gold-primary);
    text-decoration: none;
}

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

/* 响应式设计 */
@media (max-width: 480px) {
    .auth-box {
        padding: 32px 24px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
