/* Modern sky-blue login — matches approved sample (illustrated POS bg + white card) */
:root {
  --sky: #00c3ff;
  --sky-dark: #0099cc;
  --sky-deep: #0077a8;
  --ink: #0c2436;
  --muted: #6b8799;
  --card: #ffffff;
}

html {
  height: 100%;
}
html, body.login-modern {
  min-height: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: #0a1c2b;
}

/* True viewport center — login + forgot stay one card in the middle */
body.login-modern {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Full-bleed sample-style background image */
.login-modern__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #0a1c2b;
  background-image: var(--login-bg-image, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.login-modern__bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 24, 37, 0.15) 0%, rgba(7, 24, 37, 0.35) 100%);
  pointer-events: none;
}

/* Soft vignette if image missing — still readable */
.login-modern__bg.is-fallback {
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0, 195, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 70%, rgba(0, 119, 168, 0.45), transparent 50%),
    linear-gradient(160deg, #0c2436 0%, #123a52 40%, #0a1c2b 100%);
}

.login-modern__cibato-fixed {
  display: none !important;
}

.login-modern__wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 24px 16px;
  flex-shrink: 0;
}

.login-modern__card {
  background: var(--card);
  border-radius: 18px;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 20, 40, 0.45);
}

.login-modern__brand {
  text-align: center;
  margin-bottom: 16px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-modern__logo {
  max-width: 240px;
  max-height: 78px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.login-modern__lead {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.login-modern__alert {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
  text-align: center;
}
.login-modern__alert--error {
  background: #ffe8eb;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.login-modern__alert--ok {
  background: #e6fbf8;
  color: #06665e;
  border: 1px solid #9ee8df;
}

.login-modern__field {
  position: relative;
  margin-bottom: 14px;
}
.login-modern__input {
  width: 100%;
  height: 46px;
  border: 1.5px solid #d5e8f2;
  border-radius: 12px;
  padding: 10px 42px 10px 14px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  box-sizing: border-box;
}
.login-modern__input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.2);
}
.login-modern__icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sky);
  font-size: 16px;
  pointer-events: none;
}
/* Password show/hide toggle (clickable lock / eye) */
.login-modern__toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--sky);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  border-radius: 8px;
}
.login-modern__toggle-pass:hover,
.login-modern__toggle-pass:focus {
  color: var(--sky-deep);
  outline: none;
  background: rgba(0, 195, 255, 0.08);
}
.login-modern__field--password .login-modern__input {
  padding-right: 46px;
}

.login-modern__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 8px;
}
.login-modern__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}
.login-modern__remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--sky);
}

.login-modern__btn {
  flex: 0 0 auto;
  min-width: 118px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--sky);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 195, 255, 0.35);
  transition: background 0.15s ease, transform 0.1s ease;
}
.login-modern__btn:hover,
.login-modern__btn:focus {
  background: var(--sky-dark);
}
.login-modern__btn:active {
  transform: translateY(1px);
}

.login-modern__forgot {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--sky-deep);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.login-modern__forgot:hover {
  color: var(--sky);
  text-decoration: underline;
}

.login-modern__version {
  margin: 18px 0 0;
  text-align: right;
  color: #9aabb8;
  font-size: 12px;
  font-style: italic;
}

.login-modern__demo {
  margin-top: 16px;
}

@media (max-width: 480px) {
  .login-modern__card {
    padding: 28px 20px 22px;
  }
  .login-modern__row {
    flex-direction: column;
    align-items: stretch;
  }
  .login-modern__btn {
    width: 100%;
  }
}

