/* Devise registration page - styles moved out of view (Hotwire/Stimulus) */

:root {
  --reptax-primary: #B72024;
  --reptax-secondary: #F2E761;
  --reptax-dark: #1A1A1A;
  --reptax-light: #FEF2F2;
  --reptax-red: #DC2626;
  --reptax-red-light: #EF4444;
  --reptax-red-dark: #B91C1C;
}

.bg-reptax-primary { background-color: var(--reptax-primary); }
.text-reptax-primary { color: var(--reptax-primary); }
.border-reptax-primary { border-color: var(--reptax-primary); }
.bg-reptax-light { background-color: var(--reptax-light); }
.bg-reptax-dark { background-color: var(--reptax-dark); }
.from-reptax-light\/50 { --tw-gradient-from: rgba(254, 242, 242, 0.5); }
.from-reptax-primary { --tw-gradient-from: var(--reptax-primary); }
.to-reptax-secondary { --tw-gradient-to: var(--reptax-secondary); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.backdrop-blur { backdrop-filter: blur(8px); }
.icon-check::before { content: "✅"; font-size: 1rem; }
.icon-arrow::before { content: "→"; font-size: 1rem; }

.modern-bg {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(220, 38, 38, 0.05) 50%,
    rgba(239, 68, 68, 0.03) 75%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(220, 38, 38, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.form-input {
  width: 100%;
  height: 52px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-input:focus {
  outline: none;
  border-color: var(--reptax-red);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 4px rgba(220, 38, 38, 0.15),
    0 4px 20px rgba(220, 38, 38, 0.1);
  transform: translateY(-1px);
}

.form-input.error {
  border-color: #ef4444;
  background: rgba(254, 242, 242, 0.9);
}

.form-input.success {
  border-color: #10b981;
  background: rgba(240, 253, 244, 0.9);
}

.form-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: rgba(31, 41, 55, 0.9);
  margin-bottom: 8px;
  display: block;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.btn-primary-enhanced {
  width: 100%;
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 25px rgba(220, 38, 38, 0.3),
    0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-primary-enhanced:hover {
  background: linear-gradient(135deg, #B91C1C 0%, #DC2626 100%);
  transform: translateY(-2px);
  box-shadow:
    0 12px 35px rgba(220, 38, 38, 0.4),
    0 6px 16px rgba(220, 38, 38, 0.3);
}

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

.field-container {
  margin-bottom: 24px;
}

.password-strength {
  margin-top: 8px;
  display: none;
}

.password-strength.show {
  display: block;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 4px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-fill.weak { background: linear-gradient(90deg, #EF4444, #F87171); width: 25%; }
.strength-fill.fair { background: linear-gradient(90deg, #F59E0B, #FBBF24); width: 50%; }
.strength-fill.good { background: linear-gradient(90deg, #10B981, #34D399); width: 75%; }
.strength-fill.strong { background: linear-gradient(90deg, #059669, #10B981); width: 100%; }

.strength-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.strength-text.weak { color: #EF4444; }
.strength-text.fair { color: #F59E0B; }
.strength-text.good { color: #10B981; }
.strength-text.strong { color: #059669; }

.error-message {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #EF4444;
  margin-top: 6px;
  display: none;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.error-message.show {
  display: block;
}

.wf-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.wf-divider::before,
.wf-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.wf-divider span {
  padding: 0 16px;
  color: rgba(160, 174, 192, 0.8);
  font-size: 12px;
  font-weight: 500;
}

.wf-social-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  height: 48px;
  width: 100%;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(31, 41, 55, 0.9);
  font-weight: 500;
  font-size: 14px;
  cursor: not-allowed;
  opacity: 0.8;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wf-social-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.95);
  opacity: 0.9;
}

.error-container {
  background: rgba(254, 242, 242, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #b91c1c;
}

.error-container ul {
  margin: 0;
  padding-left: 20px;
}

.error-container li {
  margin: 4px 0;
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .auth-page {
    padding: 24px;
  }
}

@media (min-width: 1024px) {
  .auth-page {
    padding: 32px;
  }
}

.auth-content {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-sizing: border-box;
}

.auth-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0;
}

.auth-header .logo {
  margin: 0 auto 1rem;
  height: 4rem;
  width: auto;
  display: block;
}

.auth-header h1 {
  margin-bottom: 1rem;
}

.auth-header p {
  margin: 0;
}

.auth-card {
  padding: 2rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .auth-card {
    padding: 2.5rem;
  }
}

@media (max-width: 640px) {
  .glass-container.auth-card {
    border-radius: 20px;
  }

  .form-input {
    height: 48px;
    padding: 12px 16px;
  }
}
