/* ============================================================
   Gertor Hospitalar – Auth (Login) CSS
   ============================================================ */

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

:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --green-50: #f0fdf4;
  --green-600:#16a34a;
  --red-50:   #fef2f2;
  --red-600:  #dc2626;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--gray-800);
}

/* ── SPLIT LAYOUT ── */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── LEFT PANEL ── */
.auth-split__left {
  background: linear-gradient(145deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.auth-split__left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.auth-brand { position: relative; z-index: 1; max-width: 380px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 48px;
}
.logo__img--white { width: 40px; height: 40px; filter: brightness(0) invert(1); }
.logo__text--white { font-size: 1.2rem; font-weight: 500; color: rgba(255,255,255,.9); }
.logo__text--white strong { font-weight: 800; color: #fff; }
.auth-brand__tagline { margin-bottom: 40px; }
.auth-brand__tagline h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -.3px;
}
.auth-brand__tagline p { color: rgba(255,255,255,.7); font-size: .95rem; line-height: 1.65; }
.auth-brand__features { display: flex; flex-direction: column; gap: 14px; }
.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
}
.auth-feature__icon { font-size: 1.3rem; }

/* ── RIGHT PANEL ── */
.auth-split__right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: #fff;
}
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-form-header { margin-bottom: 32px; }
.auth-form-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -.3px;
}
.auth-form-header p { color: var(--gray-500); font-size: .95rem; }

/* ── ALERTS ── */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.alert--success { background: var(--green-50); color: var(--green-600); border: 1px solid #bbf7d0; }
.alert--error   { background: var(--red-50);   color: var(--red-600);   border: 1px solid #fecaca; }

/* ── FORM ── */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-label__link {
  font-size: .8rem;
  font-weight: 500;
  color: var(--blue-600);
  text-decoration: none;
}
.form-label__link:hover { text-decoration: underline; }
.input-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}
.form-control {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-control::placeholder { color: var(--gray-400); }
.input-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.input-toggle-pass:hover { color: var(--gray-600); }

/* ── CHECKBOX ── */
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check__input {
  width: 16px; height: 16px;
  accent-color: var(--blue-600);
  cursor: pointer;
}
.form-check__label { font-size: .85rem; color: var(--gray-600); cursor: pointer; }

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
  font-family: inherit;
}
.btn--primary {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
}
.btn--primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn--lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn--full { width: 100%; }

/* ── AUTH FOOTER ── */
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  font-size: .82rem;
  color: var(--gray-400);
}
.auth-footer__link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
}
.auth-footer__link:hover { text-decoration: underline; }
.auth-footer__sep { color: var(--gray-300); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-split__left { display: none; }
  .auth-split__right { padding: 40px 24px; }
}
