/* ORBIZO TRACK admin login — full viewport, hero uncropped */
:root {
  --ot-blue: #1e88e5;
  --ot-blue-btn: #2196f3;
  --ot-blue-deep: #1565c0;
  --ot-title: #1a237e;
  --ot-ink: #334155;
  --ot-muted: #94a3b8;
  --ot-line: #e2e8f0;
  --ot-card: #ffffff;
  --ot-font: "Poppins", system-ui, sans-serif;
}

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

html,
body.ot-login-body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--ot-font);
  color: var(--ot-ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.ot-shell {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  margin: 0;
  padding: 0;
}

.ot-login {
  width: 100%;
  height: 100%;
  display: grid;
  /* Left grows; form stays fixed-width so hero can show full artwork */
  grid-template-columns: minmax(0, 1fr) 400px;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

.ot-login__hero {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #ffffff;
}

/* fill = full image visible (no crop), stretched to panel edges */
.ot-login__hero-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.ot-login__side {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  background:
    radial-gradient(circle at 100% 100%, rgba(33, 150, 243, 0.07), transparent 42%),
    #f8fafc;
}

.ot-login__side::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 22px solid rgba(33, 150, 243, 0.07);
  pointer-events: none;
}

.ot-login__switch {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: var(--ot-blue-deep);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(33, 150, 243, 0.1);
}

.ot-login__switch:hover {
  background: rgba(33, 150, 243, 0.16);
}

.ot-login__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  padding: 28px 26px 24px;
  background: var(--ot-card);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(26, 35, 126, 0.1);
}

.ot-login__card-head {
  text-align: center;
  margin-bottom: 20px;
}

.ot-login__card-logo {
  display: block;
  width: 168px;
  height: auto;
  margin: 0 auto 14px;
}

.ot-login__card-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ot-title);
  line-height: 1.2;
}

.ot-login__card-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--ot-muted);
}

.ot-login__form {
  display: grid;
  gap: 12px;
}

.ot-input {
  position: relative;
  display: block;
}

.ot-input__ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: inline-flex;
  pointer-events: none;
}

.ot-input input {
  width: 100%;
  height: 46px;
  padding: 0 42px;
  border: 1px solid var(--ot-line);
  border-radius: 10px;
  background: #f4f8fc;
  font: inherit;
  font-size: 14px;
  color: var(--ot-ink);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.ot-input input::placeholder {
  color: #b0bec5;
}

.ot-input input:focus {
  border-color: rgba(33, 150, 243, 0.65);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.12);
  background: #fff;
}

.ot-input__eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.ot-input__eye:hover {
  color: var(--ot-blue-deep);
  background: rgba(33, 150, 243, 0.08);
}

.ot-login__btn {
  margin-top: 2px;
  height: 46px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--ot-blue-btn);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 16px rgba(33, 150, 243, 0.25);
  transition: background 150ms ease, transform 150ms ease;
}

.ot-login__btn span {
  font-size: 20px;
  line-height: 1;
}

.ot-login__btn:hover {
  background: var(--ot-blue-deep);
  transform: translateY(-1px);
}

.ot-login__btn.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.ot-login__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

.ot-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.ot-check input {
  width: 14px;
  height: 14px;
  accent-color: var(--ot-blue-btn);
  margin: 0;
}

.ot-forgot {
  color: var(--ot-blue-btn);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.ot-forgot:hover {
  text-decoration: underline;
}

.ot-usertype {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 2px 2px 4px;
}

.ot-usertype__opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.ot-usertype__opt input {
  width: 15px;
  height: 15px;
  accent-color: var(--ot-blue-btn);
  margin: 0;
}

@media (max-width: 900px) {
  html,
  body.ot-login-body {
    overflow: auto;
    height: auto;
    min-height: 100%;
  }

  .ot-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .ot-login {
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(200px, 34vh) auto;
  }

  .ot-login__hero {
    min-height: 200px;
  }

  .ot-login__side {
    padding: 28px 18px 36px;
  }

  .ot-login__card {
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .ot-login {
    grid-template-rows: minmax(160px, 28vh) auto;
  }

  .ot-login__card-logo {
    width: 150px;
  }
}
