/* Login & Register - Modern Blue Gradient Design */

/* === PAGE LAYOUT === */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
  position: relative;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.3), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.3), transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* === CONTAINER === */
.login-container {
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

/* === CARD === */
.login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 48px 56px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === LOGO === */
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.login-logo img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.4));
}

.logo-text {
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.login-sub {
  text-align: center;
  color: #64748b;
  font-size: 15px;
  margin: 0 0 32px;
  font-weight: 500;
}

/* === PROGRESS STEPS === */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
  padding: 0 28px;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
}

.progress-line {
  position: absolute;
  top: 28px;
  left: 28px;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #3b82f6);
  border-radius: 2px;
  transition: width 0.5s ease;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #94a3b8;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step-circle i {
  font-size: 22px;
}

.step.active .step-circle {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  border-color: #0ea5e9;
  color: #fff;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
  transform: scale(1.1);
}

.step.completed .step-circle {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  color: #fff;
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}

.step.active .step-label {
  color: #0ea5e9;
  font-weight: 700;
}

.step.completed .step-label {
  color: #10b981;
}

/* === ALERTS === */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 2px solid #fca5a5;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 2px solid #6ee7b7;
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 2px solid #93c5fd;
}

/* === TABS === */
.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  padding: 6px;
  border-radius: 14px;
  border: 2px solid rgba(14, 165, 233, 0.2);
}

.login-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-tab:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #334155;
}

.login-tab.active {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

/* === FORMS === */
.login-form {
  display: none;
}

.login-form.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #334155;
}

.form-label i {
  color: #0ea5e9;
  font-size: 16px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  color: #0f172a;
  background: #fff;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 500;
}

.form-control:hover {
  border-color: #cbd5e1;
}

.form-control:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: #94a3b8;
}

/* === SELECT === */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%230ea5e9' d='M9 12L4 7h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
  cursor: pointer;
  font-weight: 600;
}

select.form-control option {
  padding: 12px;
  font-weight: 500;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #3b82f6);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.5);
}

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

/* === SUMMARY === */
.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-item {
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 12px;
  border: 2px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
}

.summary-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.4);
}

.summary-item i {
  font-size: 20px;
  color: #0ea5e9;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.summary-content {
  flex: 1;
}

.summary-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.summary-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

/* === FOOTER === */
.login-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 2px solid #e2e8f0;
}

.login-footer p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.login-footer a {
  color: #0ea5e9;
  font-weight: 700;
  text-decoration: none;
}

.login-footer a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .login-container {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .login-container {
    max-width: 560px;
  }
  
  .login-card {
    padding: 40px 36px;
  }
}

@media (max-width: 640px) {
  .login-page {
    padding: 40px 20px;
  }
  
  .login-card {
    padding: 32px 24px;
    border-radius: 24px;
  }
  
  .logo-text {
    font-size: 30px;
  }
  
  .step-circle {
    width: 48px;
    height: 48px;
  }
  
  .step-label {
    font-size: 11px;
  }
  
  .login-tabs {
    flex-direction: column;
  }
  
  .form-control {
    padding: 12px 16px;
  }
  
  .btn {
    padding: 12px 22px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 20px;
  }
  
  .step-label {
    display: none;
  }
  
  .progress-steps {
    padding: 0 20px;
  }
  
  .progress-steps::before,
  .progress-line {
    left: 20px;
    right: 20px;
  }
}

/* === UTILITIES === */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.form-control:focus-visible,
.btn:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}
