@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Work+Sans:wght@400;500;600&display=swap');

/* =====================================================
   ZocDoc-Inspired Auth Stylesheet
   HekoPora Medical Appointments Platform
   ===================================================== */

:root {
  /* ZocDoc Color Palette */
  --primary: #FEF04B;
  --primary-dark: #FCD22B;
  --primary-hover: #F5E423;
  --background-light: #FFF9EA;
  --background-cream: #FFFDF7;
  --surface: #FFFFFF;
  --text-primary: #2D2D32;
  --text-secondary: #5A5A62;
  --text-muted: #8A8A94;
  --accent-green: #5BC89E;
  --accent-orange: #E87C48;
  --border: rgba(45, 45, 50, 0.12);
  --border-light: rgba(45, 45, 50, 0.06);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45, 45, 50, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 45, 50, 0.08);
  --shadow-lg: 0 16px 48px rgba(45, 45, 50, 0.12);
  --shadow-xl: 0 24px 64px rgba(45, 45, 50, 0.16);
  --shadow-primary: 0 8px 24px rgba(254, 240, 75, 0.35);
  
  /* Typography */
  --font-display: 'Sora', 'Work Sans', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  
  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--background-cream);
  min-height: 100vh;
}

/* Auth Layout */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: 
    radial-gradient(ellipse at 0% 0%, rgba(254, 240, 75, 0.15), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(91, 200, 158, 0.1), transparent 50%),
    var(--background-cream);
}

@media (min-width: 1024px) {
  .auth-page {
    grid-template-columns: 1fr 1fr;
  }
}

/* Form Side */
.auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .auth-form-side {
    padding: 3rem 4rem;
  }
}

/* Illustration Side */
.auth-illustration-side {
  display: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

@media (min-width: 1024px) {
  .auth-illustration-side {
    display: flex;
  }
}

.auth-illustration-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(91, 200, 158, 0.3), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(232, 124, 72, 0.2), transparent 40%);
  pointer-events: none;
}

.illustration-container {
  position: relative;
  z-index: 1;
  max-width: 500px;
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

.illustration-container img,
.illustration-container svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(45, 45, 50, 0.15));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.illustration-text {
  text-align: center;
  color: var(--text-primary);
  margin-top: 2rem;
}

.illustration-text h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.illustration-text p {
  font-size: 1.05rem;
  opacity: 0.85;
}

/* Auth Card */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  animation: slideUp 0.5s ease-out;
}

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

/* Brand */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-primary);
  transition: transform var(--transition-fast);
}

.auth-brand:hover .brand-mark {
  transform: scale(1.05);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

/* Auth Header */
.auth-header {
  margin-bottom: 1.75rem;
}

.auth-header h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Alerts */
.auth-alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.auth-alert--error {
  background: rgba(232, 124, 72, 0.12);
  color: #c4441a;
  border: 1px solid rgba(232, 124, 72, 0.25);
}

.auth-alert--success {
  background: rgba(91, 200, 158, 0.12);
  color: #1a8a5c;
  border: 1px solid rgba(91, 200, 158, 0.25);
}

.auth-alert--error::before {
  content: '⚠';
}

.auth-alert--success::before {
  content: '✓';
}

/* Form Fields */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: 
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:hover {
  border-color: rgba(45, 45, 50, 0.2);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(254, 240, 75, 0.3);
  background: var(--surface);
}

/* Checkbox */
.form-checkbox-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.form-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border);
  appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.form-checkbox:checked {
  background: var(--primary);
  border-color: var(--primary-dark);
}

.form-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.form-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: 
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
  outline: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-primary);
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-dark));
  box-shadow: 0 12px 32px rgba(254, 240, 75, 0.45);
  transform: translateY(-2px);
}

.btn--primary:focus {
  box-shadow: 0 0 0 3px rgba(254, 240, 75, 0.5);
}

.btn--outline {
  width: 100%;
  background: var(--surface);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn--outline:hover {
  background: var(--background-light);
  border-color: rgba(45, 45, 50, 0.2);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-footer a:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

/* Social Button Icons */
.btn--outline svg {
  width: 20px;
  height: 20px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
  }
  
  .auth-header h1 {
    font-size: 1.4rem;
  }
  
  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  
  .brand-name {
    font-size: 1.2rem;
  }
}

/* Decorative Elements */
.auth-decoration {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}

.auth-decoration--1 {
  top: 10%;
  left: 5%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(254, 240, 75, 0.3), transparent 70%);
  border-radius: 50%;
}

.auth-decoration--2 {
  bottom: 15%;
  right: 8%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(91, 200, 158, 0.25), transparent 70%);
  border-radius: 50%;
}
