/* =========================
   现代化注册页面设计 - 压缩优化版
   ========================= */

.desktop-register-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.desktop-register-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.desktop-register-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.desktop-register-header {
    text-align: center;
    margin-bottom: 28px;
}

.desktop-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.desktop-logo i {
    font-size: 24px;
    color: white;
}

.desktop-register-title {
    font-size: 26px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 6px 0;
}

.desktop-register-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

.desktop-form-group {
    margin-bottom: 18px;
}

.desktop-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-form-label i {
    color: #667eea;
    font-size: 13px;
}

.desktop-form-input {
    width: 100%;
    height: 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    background: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.desktop-form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08);
}

.desktop-form-input.is-invalid {
    border-color: #e53e3e;
    background: #fef5f5;
}

.desktop-input-group {
    display: flex;
    gap: 8px;
}

.desktop-input-group .desktop-form-input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.desktop-sms-btn {
    height: 44px;
    padding: 0 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0 10px 10px 0;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.desktop-sms-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.desktop-sms-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.desktop-register-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.25);
}

.desktop-register-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.desktop-register-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.desktop-login-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.desktop-login-text {
    font-size: 13px;
    color: #718096;
    margin: 0 0 12px 0;
}

.desktop-login-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.3s ease;
}

.desktop-login-link:hover {
    color: #5a67d8;
    text-decoration: none;
}

.desktop-error {
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 6px;
    color: #c53030;
    padding: 6px 10px;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.desktop-success {
    background: #c6f6d5;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    color: #2f855a;
    padding: 6px 10px;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .desktop-register-card {
        margin: 20px;
        padding: 28px 24px;
        max-width: 380px;
    }
    
    .desktop-register-title {
        font-size: 24px;
    }
    
    .desktop-logo {
        width: 50px;
        height: 50px;
    }
    
    .desktop-form-input {
        height: 42px;
        font-size: 14px;
    }
    
    .desktop-sms-btn {
        height: 42px;
        font-size: 12px;
        min-width: 90px;
    }
    
    .desktop-register-btn {
        height: 44px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .desktop-register-container {
        padding: 16px;
    }
    
    .desktop-register-card {
        padding: 24px 20px;
        max-width: 100%;
    }
    
    .desktop-register-header {
        margin-bottom: 24px;
    }
    
    .desktop-form-group {
        margin-bottom: 16px;
    }
    
    .desktop-input-group {
        flex-direction: column;
    }
    
    .desktop-input-group .desktop-form-input {
        border-radius: 10px;
        margin-bottom: 8px;
    }
    
    .desktop-sms-btn {
        border-radius: 10px;
        width: 100%;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .desktop-register-card {
        max-width: 480px;
        padding: 40px;
    }
} 