/* OMEGATE — login pages (patient: Modules/Frontend/.../auth/login.blade.php, staff: resources/views/auth/login.blade.php).
   Two panels: a solid ink brand panel and a white form panel. No gradients, no glass. */

.og-auth {
  --og-a-ink: #1D1D1B;
  --og-a-orange: #FF7A1F;
  --og-a-orange-dark: #EB620E;
  --og-a-text: #1D1D1B;
  --og-a-muted: #6b6b66;
  --og-a-line: #e4e4df;
  --og-a-field: #fafaf8;
  --og-a-danger: #c62828;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: #fff;
  color: var(--og-a-text);
  font-family: var(--omegate-font, 'Cairo', system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.6;
}
.og-auth *, .og-auth *::before, .og-auth *::after { box-sizing: border-box; }

/* ---- brand panel ---------------------------------------------------------- */
.og-auth__brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 52px;
  background: var(--og-a-ink);
  color: #fff;
}
/* two solid rings echo the logo mark */
.og-auth__brand::before,
.og-auth__brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.og-auth__brand::before {
  width: 520px; height: 520px;
  inset-block-end: -220px; inset-inline-end: -200px;
  border: 70px solid rgba(255, 122, 31, 0.9);
}
.og-auth__brand::after {
  width: 260px; height: 260px;
  inset-block-end: -60px; inset-inline-end: -70px;
  border: 2px solid rgba(255, 255, 255, 0.14);
}
.og-auth__brand > * { position: relative; z-index: 1; }
.og-auth__logo { display: inline-block; line-height: 0; }
/* the logo files carry wide transparent margins; crop them visually */
.og-auth__logo img { height: 74px; width: auto; margin: -14px -22px; }
.og-auth__headline {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
  max-width: 20ch;
}
.og-auth__sub { margin: 0; max-width: 40ch; color: rgba(255, 255, 255, 0.72); font-size: 16px; }
.og-auth__features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.og-auth__features li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.9); }
.og-auth__features i {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--og-a-orange);
  font-size: 20px;
}
.og-auth__copy { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 13px; }

/* ---- form panel ----------------------------------------------------------- */
.og-auth__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 32px;
}
.og-auth__box { width: 100%; max-width: 420px; margin: 0 auto; }
.og-auth__mobile-logo { display: none; }
.og-auth__tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #FFF1E6;
  color: #9E3C0E;
  font-size: 13px;
  font-weight: 600;
}
.og-auth__title { margin: 14px 0 6px; font-size: 28px; font-weight: 700; line-height: 1.3; color: var(--og-a-text); }
.og-auth__hint { margin: 0 0 28px; color: var(--og-a-muted); }

.og-auth__alert {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #FDECEC;
  color: var(--og-a-danger);
  font-size: 14px;
}
.og-auth__alert:empty { display: none; }
.og-auth__alert ul { margin: 0; padding: 0; list-style: none; }
.og-auth__alert--ok { background: #E8F5E9; color: #1B5E20; }

/* the patient script looks up .input-group around each input, so fields keep that class */
.og-auth .og-field { display: block; margin: 0 0 18px; width: 100%; }
.og-auth .og-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--og-a-text); }
.og-auth .og-control { position: relative; display: flex; align-items: center; }
.og-auth .og-control > i:first-child {
  position: absolute;
  inset-inline-start: 14px;
  color: #9a9a94;
  font-size: 19px;
  pointer-events: none;
}
.og-auth .og-input {
  width: 100%;
  height: 50px;
  padding-block: 0;
  padding-inline: 44px 14px;
  border: 1px solid var(--og-a-line) !important;
  border-radius: 12px !important;
  background: var(--og-a-field) !important;
  color: var(--og-a-text);
  font: inherit;
  font-size: 15px;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.og-auth .og-input[type=email] { direction: ltr; text-align: start; }
/* email boxes run left-to-right, which flips the logical padding; keep the icon side padded */
[dir=rtl] .og-auth .og-input[type=email] { text-align: right; padding-left: 14px; padding-right: 44px; }
.og-auth .og-input--pw { padding-inline-end: 46px; }
.og-auth .og-input::placeholder { color: #a8a8a2; }
.og-auth .og-input:hover { border-color: #cfcfc9 !important; }
.og-auth .og-input:focus {
  outline: none;
  border-color: var(--og-a-orange) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255, 122, 31, 0.15) !important;
}
.og-auth .og-input.is-invalid { border-color: var(--og-a-danger) !important; background: #fff !important; }
.og-auth .og-eye {
  position: absolute;
  inset-inline-end: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 0; border-radius: 8px;
  background: transparent;
  color: #8a8a84;
  font-size: 19px;
  cursor: pointer;
}
.og-auth .og-eye:hover { background: #f0f0ec; color: var(--og-a-text); }
.og-auth .og-field .invalid-feedback,
.og-auth .og-field .og-error {
  display: block;
  margin-top: 6px;
  color: var(--og-a-danger);
  font-size: 13px;
  text-align: start;
}
.og-auth .og-field .invalid-feedback:empty { display: none; }

.og-auth__row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin: 4px 0 24px;
  font-size: 14px;
}
.og-auth__check { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; color: var(--og-a-text); }
.og-auth__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--og-a-orange); cursor: pointer; }
.og-auth a.og-link { color: var(--og-a-orange-dark); font-weight: 600; text-decoration: none; }
.og-auth a.og-link:hover { color: #C74C0A; text-decoration: underline; }

.og-auth .og-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--og-a-orange);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s, transform .05s;
}
.og-auth .og-btn:hover { background: var(--og-a-orange-dark); }
.og-auth .og-btn:active { transform: translateY(1px); }
.og-auth .og-btn:disabled { opacity: .7; cursor: wait; }
.og-auth .og-btn:focus-visible, .og-auth .og-btn-ghost:focus-visible { outline: 3px solid rgba(255, 122, 31, 0.4); outline-offset: 2px; }

.og-auth__divider {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0 18px;
  color: #9a9a94; font-size: 13px;
}
.og-auth__divider::before, .og-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--og-a-line); }

.og-auth .og-btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  height: 48px;
  border: 1px solid var(--og-a-line);
  border-radius: 12px;
  background: #fff;
  color: var(--og-a-text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.og-auth .og-btn-ghost:hover { border-color: var(--og-a-ink); background: #fafaf8; color: var(--og-a-text); }
.og-auth .og-btn-ghost i { font-size: 18px; }

.og-auth__links { margin: 22px 0 0; display: grid; gap: 8px; text-align: center; font-size: 14px; color: var(--og-a-muted); }
.og-auth__links p { margin: 0; }

.og-auth__demo { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--og-a-line); }

/* ---- phones and tablets: the brand panel becomes a short header ----------- */
@media (max-width: 991.98px) {
  .og-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .og-auth__brand { padding: 22px 20px 26px; gap: 14px; }
  .og-auth__brand::before { width: 240px; height: 240px; border-width: 36px; inset-block-end: auto; inset-block-start: -120px; inset-inline-end: -90px; }
  .og-auth__brand::after { display: none; }
  .og-auth__logo img { height: 52px; margin: -10px -16px; }
  .og-auth__headline { font-size: 22px; margin: 0 0 4px; max-width: none; }
  .og-auth__sub { font-size: 14px; }
  .og-auth__features, .og-auth__copy { display: none; }
  .og-auth__main { justify-content: flex-start; padding: 28px 16px 40px; }
  .og-auth__title { font-size: 24px; }
}
