/* ── Customer Auth Pages (login / register) ── */

/* Gradient background */
.fi-simple-layout {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 25%, #f5f0ff 50%, #eef4ff 75%, #f0f8ff 100%);
  min-height: 100vh;
  position: relative;
}

/* Subtle animated background shapes */
.fi-simple-layout::before,
.fi-simple-layout::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.fi-simple-layout::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #0066CC 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: authFloat 20s ease-in-out infinite;
}
.fi-simple-layout::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00A3E0 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: authFloat 25s ease-in-out infinite reverse;
}

@keyframes authFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Card container */
.fi-simple-main-ctn {
  position: relative;
  z-index: 1;
}

.fi-simple-page {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 1.25rem !important;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 25px -5px rgba(0, 0, 0, 0.08),
    0 25px 50px -12px rgba(0, 102, 204, 0.08) !important;
  padding: 2.5rem !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.fi-simple-page:hover {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 30px 60px -15px rgba(0, 102, 204, 0.12) !important;
}

/* Logo area */
.fi-logo {
  margin-bottom: 0.5rem;
}
.fi-logo img,
.fi-logo svg {
  height: 2.5rem !important;
  transition: transform 0.3s ease;
}
.fi-logo:hover img,
.fi-logo:hover svg {
  transform: scale(1.05);
}

/* Auth heading */
.fi-simple-page header {
  margin-bottom: 0.25rem;
}
.fi-simple-page header h1,
.fi-simple-page .fi-header-heading {
  font-size: 1.625rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0A2540 0%, #0066CC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subheading (Nav konta? etc.) */
.fi-simple-page header p {
  color: #64748b !important;
  font-size: 0.875rem;
}
.fi-simple-page header p a {
  color: #0066CC !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.fi-simple-page header p a:hover {
  color: #00A3E0 !important;
}

/* Form fields */
.fi-simple-page .fi-input {
  border-radius: 0.625rem !important;
  border: 1.5px solid #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.2s ease !important;
  font-size: 0.9375rem !important;
}
.fi-simple-page .fi-input:focus-within {
  border-color: #0066CC !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
  background: #fff !important;
}

/* Field labels */
.fi-simple-page .fi-fo-field-label {
  font-weight: 600 !important;
  color: #334155 !important;
  font-size: 0.8125rem !important;
}

/* Password toggle + forgot link */
.fi-simple-page a[href*="password"] {
  color: #0066CC !important;
  font-weight: 500;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}
.fi-simple-page a[href*="password"]:hover {
  color: #00A3E0 !important;
}

/* Remember me checkbox */
.fi-simple-page .fi-checkbox-input:checked {
  background-color: #0066CC !important;
  border-color: #0066CC !important;
}

/* Spacing between "remember me" and submit button */
.fi-simple-page .fi-sc-actions {
  margin-top: 0.75rem !important;
  padding-top: 0.25rem;
}

/* Submit button */
.fi-simple-page .fi-btn-primary,
.fi-simple-page button[type="submit"] {
  background: linear-gradient(135deg, #0066CC 0%, #0055b3 50%, #004499 100%) !important;
  border: none !important;
  border-radius: 0.625rem !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.5rem !important;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3) !important;
  transition: all 0.25s ease !important;
  position: relative;
  overflow: hidden;
}
.fi-simple-page .fi-btn-primary:hover,
.fi-simple-page button[type="submit"]:hover {
  background: linear-gradient(135deg, #0077ee 0%, #0066CC 50%, #0055b3 100%) !important;
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4) !important;
  transform: translateY(-1px);
}
.fi-simple-page .fi-btn-primary:active,
.fi-simple-page button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3) !important;
}

/* Google login button polish */
.fi-simple-page a[href*="google"] {
  border-radius: 0.625rem !important;
  border: 1.5px solid #e2e8f0 !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}
.fi-simple-page a[href*="google"]:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* "vai" / "or" divider */
.fi-simple-page hr,
.fi-simple-page [style*="height:1px"] {
  opacity: 0.6;
}

/* Back to home link */
.fi-simple-page a[href="/"],
a[href*="sakumlapu"] {
  color: #64748b !important;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.fi-simple-page a[href="/"]:hover,
a[href*="sakumlapu"]:hover {
  color: #0066CC !important;
}

/* Turnstile widget area */
#cf-turnstile-box {
  border-radius: 0.625rem;
  overflow: hidden;
}

/* button[data-cf-wait] override for auth pages - keep existing but nicer */
.fi-simple-page button[data-cf-wait] {
  opacity: 0.5 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  filter: grayscale(0.5) !important;
  box-shadow: none !important;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .fi-simple-page {
    padding: 1.75rem !important;
    margin: 1rem !important;
    border-radius: 1rem !important;
  }

  .fi-simple-layout::before {
    width: 300px;
    height: 300px;
  }
  .fi-simple-layout::after {
    width: 250px;
    height: 250px;
  }
}

/* Smooth entrance animation */
@keyframes authSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fi-simple-page {
  animation: authSlideUp 0.5s ease-out;
}

/* Notification styling in auth context */
.fi-simple-page .fi-notification {
  border-radius: 0.625rem !important;
}
