/* Registration Form Styles */

/* --- Step Transition Loader --- */
.step-loader-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    gap: 20px;
    padding: 40px;
}
.step-loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(59, 130, 246, 0.15);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.step-loader-text {
    font-size: var(--font-md);
    color: var(--text-secondary);
    transition: opacity 0.2s ease;
    text-align: center;
}
.step-loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    overflow: hidden;
}
.step-loader-fill {
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    border-radius: 4px;
}


.step-progress { display: flex; align-items: center; justify-content: center; padding: 32px 24px 20px; gap: 0; margin-bottom: 24px; }
.step-item { display: flex; align-items: center; gap: 0; }
.step-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--font-sm); font-weight: 700; border: 2px solid var(--border-color); background: var(--bg-secondary); color: var(--text-tertiary); transition: all var(--transition-slow); position: relative; flex-shrink: 0; }
.step-circle.active { border-color: var(--accent-primary); background: var(--accent-gradient); color: #ffffff; box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
.step-circle.completed { border-color: var(--success); background: var(--success); color: #ffffff; }
.step-connector { width: 60px; height: 2px; background: var(--border-color); transition: background var(--transition-slow); flex-shrink: 0; }
.step-connector.completed { background: var(--success); }
.step-label { display: none; }
@media (min-width: 769px) {
  .step-item { flex-direction: column; position: relative; }
  .step-label { display: block; position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: var(--font-xs); color: var(--text-tertiary); font-weight: 500; transition: color var(--transition-fast); }
  .step-item.active .step-label { color: var(--accent-primary); }
  .step-item.completed .step-label { color: var(--success); }
}
.register-page { min-height: 100vh; padding: 100px 24px 60px; display: flex; flex-direction: column; align-items: center; }
.form-container { width: 100%; max-width: 580px; margin: 0 auto; animation: fadeInUp 0.5s ease; }
.form-card { padding: 40px; }
.form-card h2 { font-size: var(--font-2xl); font-weight: 700; margin-bottom: 8px; }
.form-card .form-subtitle { color: var(--text-secondary); font-size: var(--font-sm); margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 16px; }
.form-actions .btn { min-width: 140px; }
.phone-input-group { display: flex; gap: 8px; }
.phone-input-group .country-code { width: 100px; flex-shrink: 0; }
.phone-input-group .phone-number { flex: 1; }
.password-strength { margin-top: 8px; }
.strength-bar { height: 4px; border-radius: 2px; background: var(--bg-tertiary); overflow: hidden; margin-bottom: 6px; }
.strength-fill { height: 100%; border-radius: 2px; transition: width var(--transition-normal), background var(--transition-normal); }
.strength-fill.weak { width: 33%; background: var(--error); }
.strength-fill.medium { width: 66%; background: var(--warning); }
.strength-fill.strong { width: 100%; background: var(--success); }
.strength-label { font-size: var(--font-xs); font-weight: 500; transition: color var(--transition-fast); }
.strength-label.weak { color: var(--error); }
.strength-label.medium { color: var(--warning); }
.strength-label.strong { color: var(--success); }
.success-container { text-align: center; padding: 40px 20px; animation: fadeInUp 0.6s ease; }
.success-checkmark { width: 100px; height: 100px; margin: 0 auto 24px; position: relative; }
.success-checkmark svg { width: 100%; height: 100%; }
.confetti-piece { position: fixed; width: 10px; height: 10px; border-radius: 2px; animation: confetti 3s ease-in-out forwards; z-index: 999; }
.success-container h2 { font-size: var(--font-2xl); margin-bottom: 16px; }
.success-container p { color: var(--text-secondary); margin-bottom: 12px; }
.success-email { color: var(--accent-primary); font-weight: 600; font-size: var(--font-lg); }
.qr-container { text-align: center; padding: 40px; animation: fadeInUp 0.5s ease; }
.qr-code-wrapper { display: inline-block; padding: 20px; background: #ffffff; border-radius: var(--radius-lg); margin: 24px 0; box-shadow: var(--shadow-lg); }
.qr-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; padding: 12px 24px; border-radius: var(--radius-full); font-size: var(--font-sm); font-weight: 500; }
.qr-status.waiting { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.qr-status.connected { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
@media (max-width: 768px) {
  .register-page { padding: 80px 16px 40px; }
  .form-card { padding: 24px; }
  .form-card h2 { font-size: var(--font-xl); }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .step-connector { width: 30px; }
  .step-circle { width: 34px; height: 34px; font-size: var(--font-xs); }
}
