/* =====================================================
   REALONE FC - AUTHENTICATION SUITE (LOGIN & PORTAL ACCESS)
   Modern, Artisanal, Mobile-First Authentication Design
   Reference: Figma / Dribbble Clean Floating-Pill Aesthetics
===================================================== */

:root {
  --auth-bg-page: #CFD9E3;
  --auth-card-bg: #FFFFFF;
  --auth-text-dark: #111827;
  --auth-text-muted: #6B7280;
  --auth-text-subtle: #9CA3AF;
  --auth-input-bg: #F3F4F6;
  --auth-input-focus: #FFFFFF;
  --auth-border-subtle: #E5E7EB;
  --auth-coral: #E05A3C;
  --auth-coral-dark: #CB4528;
  --auth-gold: #D2A847;
  --auth-teal: #4FB089;
  --auth-btn-dark: #111827;
  --auth-btn-hover: #000000;
  --auth-radius-pill: 999px;
  --auth-radius-card: 36px;
  --auth-radius-input: 20px;
}

* {
  box-sizing: border-box;
}

body.auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 25%, #DEE7EE 0%, #C6D3DE 100%);
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--auth-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  -webkit-font-smoothing: antialiased;
}

/* Device Shell / Card Container */
.auth-device-container {
  width: 100%;
  max-width: 430px;
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius-card);
  box-shadow: 0 25px 65px -12px rgba(15, 23, 42, 0.22), 0 0 1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: authFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Organic Illustrated Header */
.auth-header-art {
  position: relative;
  background-color: var(--auth-coral);
  background-image: 
    radial-gradient(circle at 18% 28%, var(--auth-gold) 0%, rgba(210, 168, 71, 0.95) 32%, transparent 33%),
    radial-gradient(circle at 86% 82%, var(--auth-teal) 0%, rgba(79, 176, 137, 0.95) 44%, transparent 45%),
    linear-gradient(145deg, #E66649 0%, #D2472A 100%);
  padding: 2.25rem 1.75rem 3.5rem 1.75rem;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
}

/* Organic curved texture overlays */
.auth-header-art::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.25;
  pointer-events: none;
}

/* Club Brand Crest in Header */
.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: var(--auth-radius-pill);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.auth-brand-badge:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.3);
}

.auth-brand-badge img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.auth-brand-badge span {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-header-title {
  font-family: 'Clash Display', 'Satoshi', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.auth-header-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.4rem;
  margin-bottom: 0;
  font-weight: 400;
}

/* Card Body Overlay */
.auth-card-content {
  background: var(--auth-card-bg);
  border-radius: 32px 32px 0 0;
  margin-top: -1.75rem;
  position: relative;
  z-index: 2;
  padding: 2rem 1.75rem 1.75rem 1.75rem;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.04);
}

/* Google / Alternative SSO Pill Button */
.auth-sso-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #FFFFFF;
  border: 1px solid var(--auth-border-subtle);
  border-radius: var(--auth-radius-pill);
  padding: 0.85rem 1.25rem;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.auth-sso-btn:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

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

.auth-sso-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Divider "or" */
.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0;
  position: relative;
  text-align: center;
}

.auth-divider span {
  background: var(--auth-card-bg);
  padding: 0 0.85rem;
  color: var(--auth-text-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 1;
}

/* Form Groups & Floating Field Capsules */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-field-group {
  position: relative;
  background: var(--auth-input-bg);
  border: 1.5px solid transparent;
  border-radius: var(--auth-radius-input);
  padding: 0.65rem 1.15rem 0.55rem 1.15rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-field-group:focus-within {
  background: var(--auth-input-focus);
  border-color: var(--auth-btn-dark);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
}

.auth-field-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--auth-text-muted);
  text-transform: capitalize;
  margin-bottom: 2px;
  pointer-events: none;
  transition: color 0.15s ease;
  line-height: 1;
}

.auth-field-group:focus-within .auth-field-label {
  color: var(--auth-btn-dark);
}

.auth-input-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-field-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--auth-text-dark);
  width: 100%;
  font-family: inherit;
  padding: 0;
  margin: 0;
}

.auth-field-input::placeholder {
  color: var(--auth-text-subtle);
  font-weight: 400;
}

/* Password Eye Toggle */
.auth-eye-btn {
  background: #E5E7EB;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding: 0;
}

.auth-eye-btn:hover {
  background: #D1D5DB;
  color: var(--auth-text-dark);
}

.auth-eye-btn svg,
.auth-eye-btn i {
  font-size: 0.88rem;
}

/* Dual Column Inputs */
.auth-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Primary Action CTA Button */
.auth-submit-btn {
  background: var(--auth-btn-dark);
  color: #FFFFFF;
  border: none;
  border-radius: var(--auth-radius-pill);
  padding: 1.05rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.auth-submit-btn:hover {
  background: var(--auth-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.25);
}

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

/* Terms & Fine Print */
.auth-terms-text {
  font-size: 0.8rem;
  color: var(--auth-text-muted);
  text-align: center;
  line-height: 1.55;
  margin-top: 1.4rem;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}

.auth-terms-text a {
  color: var(--auth-text-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.auth-terms-text a:hover {
  opacity: 0.75;
}

/* Footer Link / Switcher */
.auth-footer-nav {
  text-align: center;
  padding-top: 1.15rem;
  border-top: 1px solid var(--auth-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--auth-text-muted);
}

.auth-footer-nav a {
  color: var(--auth-text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.auth-footer-nav a:hover {
  opacity: 0.75;
}

.auth-return-link {
  font-size: 0.82rem;
  color: var(--auth-text-muted) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.auth-return-link:hover {
  color: var(--auth-text-dark) !important;
}

/* Quick Testing Demo Box */
.auth-demo-card {
  margin-top: 1.25rem;
  background: #F9FAFB;
  border: 1px dashed #D1D5DB;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  text-align: center;
}

.auth-demo-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #6B7280;
  margin-bottom: 0.45rem;
  display: block;
}

.auth-demo-chips {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.auth-demo-chip {
  background: #FFFFFF;
  border: 1px solid var(--auth-border-subtle);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.auth-demo-chip:hover {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
}

/* Error & Alert Messages */
.auth-alert-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile Responsive Optimization */
@media (max-width: 480px) {
  body.auth-body {
    padding: 0;
    background: var(--auth-card-bg);
    align-items: flex-start;
  }
  .auth-device-container {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  .auth-header-art {
    padding: 2.5rem 1.5rem 3.5rem 1.5rem;
    border-radius: 0 0 24px 24px;
  }
  .auth-card-content {
    border-radius: 28px 28px 0 0;
    padding: 1.75rem 1.25rem 2rem 1.25rem;
    flex: 1;
  }
}
