/* MODERN SLEEK VARIABLES */
:root {
  --bg-color: #fdf2f8; /* Very pale pink background */
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  
  /* Brand Colors */
  --brand-primary: #ff3f8e; 
  --brand-gradient: linear-gradient(135deg, #ff3f8e 0%, #ff80b5 100%);
  --brand-glow: rgba(255, 63, 142, 0.4);
  
  /* UI Elements */
  --input-bg: #ffffff;
  --input-border: #f3f4f6;
  --focus-ring: rgba(255, 63, 142, 0.2);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  /* Subtle mesh gradient background for depth */
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, hsla(333,49%,92%,1) 0, transparent 50%), 
    radial-gradient(at 100% 100%, hsla(333,100%,93%,1) 0, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* CONTAINER */
.container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.header {
  text-align: center;
  max-width: 100%;
  /* Increased bottom margin to separate it from the card */
  margin: 0 auto 40px; 
}

/* The Main Title: Big, Bold, Tight */
.header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1; /* Tighter spacing prevents it from looking "gappy" */
  color: #111;
  margin: 0 0 16px; /* Space between title and subtitle */
  
  /* Optional: Keep that sleek gradient text */
  background: linear-gradient(to right, #111, #555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The Subheading: Controlled width & softer color */
.header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6; /* More breathing room for reading */
  margin: 0 auto;
  
  /* This creates the "centered block" look */
  max-width: 420px; 
}

/* Optional: If you want a tiny "EYEBROW" label above the title */
.header .eyebrow {
  display: block;
  color: var(--brand-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

/* THE CARD - Glassy & Floating */
.card {
  width: 100%;
  max-width: 520px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 48px;
  /* Multi-layered shadow for a "floating" effect */
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.02), 
    0 20px 40px -12px rgba(255, 63, 142, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  /* Entrance Animation */
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Decorative top line on card */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--brand-gradient);
}

.logo {
  display: block;
  height: 56px;
  margin: 0 auto 32px;
  object-fit: contain;
}

/* FORM FIELDS */
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

label {
  color: #374151;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-left: 4px;
}

input, select {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 2px solid transparent; /* Prepare for gradient border or focus */
  background: #f8fafc; /* Very light cool gray */
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease-in-out;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input::placeholder { color: #cbd5e1; }

/* Focus State: The sleek pink ring */
input:focus, select:focus {
  background: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
  transform: translateY(-1px);
}

/* THE BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 0;
  background: var(--brand-gradient);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px var(--brand-glow);
  position: relative;
  overflow: hidden;
}

/* Shine effect on hover */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px var(--brand-glow);
  filter: brightness(1.05);
}
.btn:active { transform: translateY(0); }

.status { 
  margin-top: 20px; 
  text-align: center; 
  font-size: 0.9rem;
}

.footer {
  margin-top: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ANIMATIONS */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .card { 
    padding: 32px 24px; 
    box-shadow: none; 
    background: transparent;
    border: none;
  }
  .container { padding: 20px 0; }
  input, select, .btn { padding: 16px; }
  .header h1 { font-size: 1.75rem; }
}