/* ==========================================================================
   AMAUTA MED - AUTH STYLES (Registro & Acceso)
   ========================================================================== */

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

:root {
  --bg-primary: #f4f8fb;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  
  --gold-primary: #af8d32;
  --gold-light: #c9a84c;
  --gold-dark: #8c7128;
  --gold-gradient: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  
  --blue-primary: #003366;
  --border-subtle: #e2e8f0;
  
  --radius-lg: 24px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
}

/* ---------- Split Screen Layout ---------- */
.auth-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Lado Izquierdo: Gráfico/Branding */
.auth-visual {
  flex: 1;
  background: var(--blue-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(175, 141, 50, 0.2), transparent 50%),
              radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.visual-content {
  max-width: 400px;
  text-align: center;
  z-index: 1;
}

.visual-content img {
  width: 120px;
  margin-bottom: 24px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.visual-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.visual-content h2 span {
  color: var(--gold-primary);
}

.visual-content p {
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* Lado Derecho: Formulario */
.auth-form-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: var(--bg-card);
}

.auth-form-box {
  width: 100%;
  max-width: 440px;
}

.auth-header {
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: #f9fafb;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(175, 141, 50, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-options a {
  color: var(--gold-primary);
  font-weight: 600;
  text-decoration: none;
}

.form-options a:hover {
  text-decoration: underline;
}

.btn-auth {
  width: 100%;
  padding: 14px;
  background: var(--gold-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(175, 141, 50, 0.3);
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(175, 141, 50, 0.4);
}

.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--gold-primary);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Back link */
.back-home {
  position: absolute;
  top: 24px;
  left: 24px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  z-index: 10;
}

.back-home:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }
  .auth-visual {
    display: none;
  }
  .back-home {
    color: var(--text-secondary);
  }
  .back-home:hover {
    color: var(--gold-primary);
  }
}

/* ==========================================================================
   AMAUTA MED - Tema Celeste Salud
   Paleta base solicitada: #EAF7FB y #BFEAF2
   ========================================================================== */
:root {
  --bg-primary: #eaf7fb;
  --bg-card: #ffffff;
  --text-primary: #0b2f3a;
  --text-secondary: #285868;

  --gold-primary: #087c89;
  --gold-light: #1aa6b6;
  --gold-dark: #075463;
  --gold-gradient: linear-gradient(135deg, #075463, #087c89);

  --blue-primary: #bfeaf2;
  --border-subtle: rgba(7, 84, 99, 0.16);
}

body {
  background: linear-gradient(135deg, #eaf7fb 0%, #bfeaf2 100%);
}

.auth-visual {
  background: linear-gradient(135deg, #bfeaf2 0%, #eaf7fb 100%);
  color: var(--text-primary);
}

.auth-visual::before {
  background:
    radial-gradient(circle at top right, rgba(8, 124, 137, 0.16), transparent 48%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.7), transparent 42%);
}

.visual-content img {
  box-shadow: 0 14px 34px rgba(7, 84, 99, 0.16);
}

.visual-content h2,
.visual-content p,
.visual-content h2 span {
  color: var(--text-primary);
}

.auth-form-wrapper {
  background: rgba(255, 255, 255, 0.86);
}

.form-group input,
.form-group select {
  background: #f7fcfe;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(191, 234, 242, 0.82);
}

.form-options a,
.auth-footer a {
  color: var(--gold-dark);
}

.btn-auth {
  background: var(--gold-gradient);
  box-shadow: 0 10px 26px rgba(7, 84, 99, 0.18);
}

.btn-auth:hover {
  box-shadow: 0 14px 34px rgba(7, 84, 99, 0.24);
}

.back-home {
  color: var(--text-primary);
}

.back-home:hover {
  color: var(--gold-dark);
}
