/* ══════════════════════════════════════════════════════════════
   Capital Septic Supply — AUTH Styles (Liquid Glass 2.0 Enterprise)
   Source: auth.css  |  Version: 2.0.0  |  2026-05-21
   ══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   AUTH SECTION — Full-width split layout
   ═══════════════════════════════════════════════════════════ */
.auth-section {
  margin-top: 14px;
  border-radius: var(--radius-hero);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(16, 32, 55, 0.12),
              0 4px 16px rgba(16, 32, 55, 0.06);
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

/* ═══════════════════════════════════════════════════════════
   BRAND PANEL — Left side (Premium Animated)
   ═══════════════════════════════════════════════════════════ */
.auth-brand-panel {
  background: linear-gradient(160deg, #0a1628 0%, var(--brand-blue) 40%, #1a2d4a 70%, var(--brand-blue-dark) 100%);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-hero) 0 0 var(--radius-hero);
  position: relative;
  overflow: hidden;
}

/* Animated floating shapes */
.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 18, 62, 0.18) 0%, transparent 70%);
  animation: auth-float-1 8s ease-in-out infinite;
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  animation: auth-float-2 10s ease-in-out infinite;
}

@keyframes auth-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.1); }
}

@keyframes auth-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

.auth-brand-panel.auth-brand-contractor {
  background: linear-gradient(160deg, #3a1520 0%, var(--brand-red) 60%, #8a1030 100%);
}

.auth-brand-inner {
  max-width: 380px;
  position: relative;
  z-index: 2;
}

.auth-brand-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.auth-brand-inner h2 {
  font-size: 34px;
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.auth-brand-inner p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Feature list with animated lines */
.auth-brand-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.auth-feature:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(6px);
}

.auth-feature svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(196, 18, 62, 0.9);
  background: rgba(196, 18, 62, 0.15);
  padding: 4px;
  border-radius: 8px;
  width: 28px;
  height: 28px;
}

.auth-feature.contractor svg {
  color: rgba(255, 200, 200, 0.8);
}

.auth-brand-note {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.auth-brand-note a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  font-weight: 700;
}

.auth-brand-note a:hover {
  color: var(--text-white);
}

/* ═══════════════════════════════════════════════════════════
   FORM PANEL — Right side (Liquid Glass)
   ═══════════════════════════════════════════════════════════ */
.auth-form-panel {
  background: linear-gradient(180deg, #fafbfd 0%, #f0f2f7 100%);
  padding: 56px 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 var(--radius-hero) var(--radius-hero) 0;
  position: relative;
}

/* Subtle decorative dot pattern */
.auth-form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(196, 18, 62, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 0 var(--radius-hero) 0 0;
  pointer-events: none;
}

.auth-form-inner {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
}

.auth-form-inner h1 {
  font-size: 30px;
  font-weight: 900;
  color: var(--brand-blue);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 14px;
  color: #8a9ab5;
  margin-bottom: 28px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   FORM ELEMENTS — Premium inputs
   ═══════════════════════════════════════════════════════════ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form .form-group {
  position: relative;
}

.auth-form .form-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.auth-form .form-group input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 2px solid rgba(200, 205, 215, 0.50);
  border-radius: 16px;
  font-size: 15px;
  font-family: var(--font-primary);
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(16, 32, 55, 0.04);
  transition: all 0.3s ease;
  outline: none;
}

.auth-form .form-group input::placeholder {
  color: rgba(130, 145, 165, 0.6);
}

.auth-form .form-group input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(32, 58, 92, 0.08),
              0 4px 16px rgba(16, 32, 55, 0.08);
  background: #ffffff;
}

/* Override browser autofill background color */
.auth-form .form-group input:-webkit-autofill,
.auth-form .form-group input:-webkit-autofill:hover, 
.auth-form .form-group input:-webkit-autofill:focus, 
.auth-form .form-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: var(--brand-blue) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Textarea — matches input design */
.auth-form .form-group textarea {
  width: 100%;
  min-height: 110px;
  padding: 16px 18px;
  border: 2px solid rgba(200, 205, 215, 0.50);
  border-radius: 16px;
  font-size: 15px;
  font-family: var(--font-primary);
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(16, 32, 55, 0.04);
  transition: all 0.3s ease;
  outline: none;
  resize: vertical;
  line-height: 1.6;
}

.auth-form .form-group textarea::placeholder {
  color: rgba(130, 145, 165, 0.6);
}

.auth-form .form-group textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(32, 58, 92, 0.08),
              0 4px 16px rgba(16, 32, 55, 0.08);
  background: #ffffff;
}

.auth-forgot-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-red);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  transition: color 0.2s ease;
}

.auth-forgot-link:hover {
  color: var(--brand-red-hover);
  text-decoration: underline;
}

.label-optional {
  font-size: 11px;
  font-weight: 400;
  color: #999;
  text-transform: none;
  letter-spacing: 0;
}

/* Password toggle */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #b0b8c8;
  transition: color 0.2s ease;
  border-radius: 10px;
}

.password-toggle:hover {
  color: var(--brand-blue);
  background: rgba(32, 58, 92, 0.06);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* Input error state */
.input-error {
  border-color: var(--brand-red) !important;
  box-shadow: 0 0 0 3px rgba(196, 18, 62, 0.08) !important;
}

.field-error {
  font-size: 12px;
  color: var(--brand-red);
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Flash messages */
.flash-message {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.flash-message.success {
  background: rgba(0, 140, 69, 0.08);
  color: #008C45;
  border: 1.5px solid rgba(0, 140, 69, 0.20);
}

.flash-message.error {
  background: rgba(196, 18, 62, 0.06);
  color: var(--brand-red);
  border: 1.5px solid rgba(196, 18, 62, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   PRIMARY AUTH BUTTON — Enterprise with shimmer
   ═══════════════════════════════════════════════════════════ */
.btn-auth-primary {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: var(--text-white);
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-primary);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(32, 58, 92, 0.25);
}

.btn-auth-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.6s ease;
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(32, 58, 92, 0.35);
}

.btn-auth-primary:hover::after {
  left: 100%;
}

.btn-auth-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(32, 58, 92, 0.2);
}

.btn-auth-contractor {
  background: linear-gradient(135deg, var(--brand-red) 0%, #8a1030 100%);
  box-shadow: 0 4px 16px rgba(196, 18, 62, 0.25);
}

.btn-auth-contractor:hover {
  box-shadow: 0 8px 28px rgba(196, 18, 62, 0.35);
}

/* ═══════════════════════════════════════════════════════════
   SOCIAL LOGIN BUTTONS — Premium glass
   ═══════════════════════════════════════════════════════════ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 205, 215, 0.5), transparent);
}

.auth-divider span {
  font-size: 12px;
  color: #a0aabe;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-social {
  height: 50px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-social svg {
  width: 20px;
  height: 20px;
}

.btn-google {
  background: #ffffff;
  color: var(--text-primary);
  border: 2px solid rgba(200, 205, 215, 0.45);
  box-shadow: 0 2px 8px rgba(16, 32, 55, 0.04);
}

.btn-google:hover:not(:disabled) {
  border-color: #4285F4;
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.15);
  transform: translateY(-2px);
}

.btn-apple {
  background: #0a0a0a;
  color: var(--text-white);
  border: 2px solid #0a0a0a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-apple:hover:not(:disabled) {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20);
}

.btn-social:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   AUTH SWITCH LINK
   ═══════════════════════════════════════════════════════════ */
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #8a9ab5;
  margin-top: 24px;
  font-weight: 500;
}

.auth-switch a {
  color: var(--brand-red);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-switch a:hover {
  color: var(--brand-red-hover);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile auth
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .auth-section { 
    margin: 16px 16px 100px; /* Floating card + space for bottom nav */
    border-radius: 20px; 
  }

  .auth-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-brand-panel {
    border-radius: 20px 20px 0 0;
    padding: 28px 24px 22px;
  }

  .auth-brand-panel::before,
  .auth-brand-panel::after { display: none; }

  .auth-brand-inner h2 { font-size: 22px; margin-bottom: 8px; }
  .auth-brand-inner p { font-size: 13px; margin-bottom: 16px; }
  .auth-brand-features { display: none; }
  .auth-brand-note { margin-top: 0; }
  .auth-brand-logo { width: 44px; height: 44px; margin-bottom: 16px; }

  .auth-form-panel {
    border-radius: 0 0 20px 20px;
    padding: 28px 20px;
  }

  .auth-form-panel::before { display: none; }
  .auth-form-inner { max-width: 100%; }
  
  /* Hide redundant titles on mobile since brand panel handles it */
  .auth-form-inner h1 { display: none; }
  .auth-subtitle { display: none; }

  .auth-form { gap: 16px; margin-top: 8px; }
  
  /* Solid white backgrounds for inputs to avoid murky colors */
  .auth-form .form-group input { 
    height: 48px; 
    font-size: 15px; 
    border-radius: 12px; 
    background: #ffffff; 
  }
  
  .auth-form .form-group textarea { 
    border-radius: 12px; 
    min-height: 90px; 
    background: #ffffff; 
  }
  
  .auth-form .form-group label { font-size: 12px; }

  .btn-auth-primary { height: 48px; font-size: 15px; border-radius: 12px; }

  .auth-form .form-row { grid-template-columns: 1fr; }
  .auth-social-buttons { grid-template-columns: 1fr; }

  .btn-social { height: 44px; border-radius: 12px; font-size: 13px; }

  .auth-divider { margin: 20px 0; }
  .auth-switch { font-size: 13px; margin-top: 16px; }
}

