@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --gasco-blue: #00a1de;
  --gasco-blue-dark: #126ead;
  --gasco-red: #da291c;
  --gasco-navy: #0a233b;
  --gasco-ink: #132539;
  --gasco-muted: #65778a;
  --gasco-line: #dce4eb;
  --gasco-soft: #f4f8fb;
}

html,
body.gasco-login {
  min-height: 100%;
}

body.gasco-login {
  margin: 0;
  padding-bottom: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--gasco-ink);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.login-shell {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 100vh;
}

.login-visual {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 58%;
  min-height: 100vh;
  padding: 72px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(4, 31, 55, 0.94) 0%, rgba(7, 54, 87, 0.62) 52%, rgba(3, 22, 40, 0.8) 100%),
    url("../../../images/gasco-login-energy.png") center center / cover no-repeat;
}

.login-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 32%, rgba(25, 155, 213, 0.22), transparent 34%),
    linear-gradient(180deg, transparent 64%, rgba(3, 19, 34, 0.46) 100%);
}

.login-visual::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  content: "";
  background: rgba(255, 255, 255, 0.15);
}

.login-visual__content,
.login-visual__footer {
  position: relative;
  z-index: 1;
}

.login-visual__content {
  max-width: 600px;
  margin-top: auto;
  margin-bottom: auto;
}

.login-visual__eyebrow,
.login-copy__kicker {
  display: inline-block;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.login-visual__eyebrow {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.login-visual h1 {
  max-width: 570px;
  margin: 28px 0 20px;
  color: #ffffff;
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.login-visual__content p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.65;
}

.login-visual__footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52d69a;
  box-shadow: 0 0 0 5px rgba(82, 214, 154, 0.12);
}

.login-access {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 42%;
  min-height: 100vh;
  padding: 54px clamp(38px, 5vw, 84px);
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: #ffffff;
}

.login-access__inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.login-brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 46px;
  margin-bottom: clamp(56px, 8vh, 92px);
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.login-brand img {
  display: block;
  width: 152px;
  height: auto;
}

.login-brand__divider {
  width: 1px;
  height: 30px;
  margin: 0 18px;
  background: var(--gasco-line);
}

.login-brand__product {
  color: var(--gasco-navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.login-copy__kicker {
  margin-bottom: 12px;
  color: var(--gasco-blue-dark);
}

.login-copy h2 {
  margin: 0 0 12px;
  color: var(--gasco-ink);
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.login-copy p {
  margin: 0;
  color: var(--gasco-muted);
  font-size: 15px;
  line-height: 1.6;
}

.login-form {
  margin-top: 38px;
}

.login-field {
  margin-bottom: 22px;
}

.login-field__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.gasco-login .login-field label {
  margin-bottom: 9px;
  color: var(--gasco-ink);
  font-size: 13px !important;
  font-weight: 600;
}

.gasco-login .form-control {
  height: 52px;
  padding: 12px 16px;
  color: var(--gasco-ink);
  font-size: 15px;
  border: 1px solid var(--gasco-line);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.gasco-login .form-control::-webkit-input-placeholder {
  color: #9aa8b5;
}

.gasco-login .form-control::-moz-placeholder {
  color: #9aa8b5;
}

.gasco-login .form-control:-ms-input-placeholder {
  color: #9aa8b5;
}

.gasco-login .form-control:focus {
  border-color: var(--gasco-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 155, 213, 0.12);
}

.login-password {
  position: relative;
}

.login-password .form-control {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #7b8b9b;
  font-size: 17px;
  background: transparent;
  transition: color 160ms ease, background 160ms ease;
}

.password-toggle:hover {
  color: var(--gasco-blue-dark);
  background: var(--gasco-soft);
}

.password-toggle:focus {
  color: var(--gasco-blue-dark);
  background: var(--gasco-soft);
  outline: 2px solid rgba(22, 155, 213, 0.35);
  outline-offset: 1px;
}

.password-toggle[aria-pressed="true"] {
  color: var(--gasco-blue-dark);
}

.recoverPass,
.recoverPass:hover,
.recoverPass:focus,
.login-back,
.login-back:hover,
.login-back:focus {
  color: var(--gasco-blue-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.recoverPass:focus,
.login-back:focus {
  outline: 2px solid rgba(22, 155, 213, 0.35);
  outline-offset: 3px;
}

.login-help {
  margin: -3px 0 26px;
  color: #8796a5;
  font-size: 12px;
  line-height: 1.5;
}

.gasco-login .login-submit {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 54px;
  padding: 0 20px;
  border: 1px solid var(--gasco-blue);
  border-radius: 9px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  background: var(--gasco-blue);
  box-shadow: 0 10px 24px rgba(18, 136, 186, 0.2);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.gasco-login .login-submit:hover,
.gasco-login .login-submit:focus,
.gasco-login .login-submit:active {
  color: #ffffff;
  border-color: var(--gasco-blue-dark);
  background: var(--gasco-blue-dark);
  box-shadow: 0 12px 28px rgba(18, 136, 186, 0.28);
  outline: none;
  transform: translateY(-1px);
}

.gasco-login .login-submit:focus {
  box-shadow: 0 0 0 4px rgba(22, 155, 213, 0.18), 0 12px 28px rgba(18, 136, 186, 0.22);
}

.login-back {
  padding: 0;
  margin: 0 0 36px;
  border: 0;
  background: transparent;
}

.login-back span {
  display: inline-block;
  margin-right: 7px;
  transition: transform 160ms ease;
}

.login-back:hover span {
  transform: translateX(-3px);
}

.gasco-login .mainErrorLogin {
  margin: 22px 0 0;
  padding: 13px 15px;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.gasco-login .mainErrorLogin.alert-danger {
  color: #9d2638;
  background: #fff0f2;
}

.gasco-login .mainErrorLogin.alert-info {
  color: #176480;
  background: #edf8fc;
}

.gasco-login .mainErrorLogin.alert-success {
  color: #287459;
  background: #eefaf5;
}

.login-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: clamp(56px, 9vh, 96px);
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: #94a1ae;
  font-size: 11px;
  line-height: 1.4;
}

.login-footer__separator {
  width: 3px;
  height: 3px;
  margin: 0 10px;
  border-radius: 50%;
  background: #bec8d1;
}

.lock-user {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
  padding: 12px 14px;
  border: 1px solid var(--gasco-line);
  border-radius: 10px;
  background: var(--gasco-soft);
}

.lock-user__avatar {
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 7px rgba(18, 48, 71, 0.14);
}

.lock-user strong,
.lock-user span {
  display: block;
}

.lock-user strong {
  color: var(--gasco-ink);
  font-size: 13px;
  font-weight: 700;
}

.lock-user span {
  margin-top: 2px;
  color: var(--gasco-muted);
  font-size: 12px;
}

.lock-actions {
  margin-top: 22px;
  text-align: center;
}

.lock-actions .login-back {
  margin: 0;
}

/* Minimal locked-session screen */
body.gasco-login.gasco-lock {
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 161, 222, 0.12), transparent 28%),
    radial-gradient(circle at 88% 92%, rgba(18, 110, 173, 0.09), transparent 30%),
    var(--gasco-soft);
}

.lock-shell {
  display: flex;
  min-height: 100vh;
  padding: 32px 20px;
  align-items: center;
  justify-content: center;
}

.lock-card {
  width: 100%;
  max-width: 470px;
  padding: 44px 46px 38px;
  border: 1px solid var(--gasco-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(18, 48, 71, 0.12);
}

.gasco-lock .login-brand {
  justify-content: center;
  margin-bottom: 42px;
}

.gasco-lock .login-copy {
  text-align: center;
}

.gasco-lock .lock-user {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.gasco-lock .lock-user__avatar {
  flex: 0 0 42px;
}

.gasco-lock .lock-user > div {
  min-width: 0;
  text-align: left;
}

.gasco-lock .login-footer {
  justify-content: center;
  margin-top: 38px;
  text-align: center;
}

@media (max-width: 1100px) {
  .login-visual {
    width: 52%;
    padding: 52px;
  }

  .login-access {
    width: 48%;
    padding-right: 48px;
    padding-left: 48px;
  }
}

@media (min-width: 821px) and (max-height: 800px) {
  .login-access {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .login-brand {
    margin-bottom: 34px;
  }

  .login-form {
    margin-top: 26px;
  }

  .login-field {
    margin-bottom: 17px;
  }

  .login-footer {
    margin-top: 34px;
  }
}

@media (max-width: 820px) {
  body.gasco-login {
    min-height: 100vh;
    background:
      linear-gradient(180deg, rgba(5, 34, 57, 0.88) 0, rgba(8, 35, 59, 0.74) 220px, #f4f8fb 420px),
      url("../../../images/gasco-login-energy.png") top center / auto 440px no-repeat;
  }

  .login-shell {
    display: block;
    min-height: 100vh;
    padding: 34px 20px;
  }

  .login-visual {
    display: none;
  }

  .login-access {
    display: block;
    width: 100%;
    max-width: 520px;
    min-height: 0;
    padding: 32px 30px 28px;
    margin: 54px auto 0;
    border: 1px solid rgba(220, 228, 235, 0.85);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(5, 32, 52, 0.18);
  }

  .login-brand {
    margin-bottom: 48px;
  }

  .login-footer {
    margin-top: 52px;
  }
}

@media (max-width: 520px) {
  .login-shell {
    padding: 22px 14px;
  }

  .login-access {
    padding: 28px 22px 24px;
    margin-top: 28px;
    border-radius: 15px;
  }

  .login-brand {
    margin-bottom: 42px;
  }

  .login-brand img {
    width: 136px;
  }

  .login-copy h2 {
    font-size: 34px;
  }

  .login-footer {
    display: block;
    margin-top: 44px;
  }

  .login-footer__separator {
    display: none;
  }

  .login-footer span:last-child {
    display: block;
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gasco-login *,
  .gasco-login *::before,
  .gasco-login *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Locked session: mobile overrides kept last to take priority over login rules. */
@media (max-width: 640px) {
  body.gasco-login.gasco-lock {
    min-height: 100dvh;
    background: var(--gasco-soft);
  }

  .gasco-lock .lock-shell {
    min-height: 100dvh;
    padding: 20px 14px;
    align-items: flex-start;
  }

  .gasco-lock .lock-card {
    max-width: 100%;
    padding: 30px 22px 26px;
    margin: auto 0;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(18, 48, 71, 0.1);
  }

  .gasco-lock .login-brand {
    min-height: 0;
    margin-bottom: 30px;
  }

  .gasco-lock .login-brand img {
    width: 132px;
  }

  .gasco-lock .login-copy h2 {
    font-size: 30px;
  }

  .gasco-lock .lock-user {
    justify-content: flex-start;
    margin-top: 22px;
    padding: 10px 12px;
  }

  .gasco-lock .login-form {
    margin-top: 26px;
  }

  .gasco-lock .login-footer {
    display: block;
    margin-top: 30px;
  }

  .gasco-lock .login-footer__separator {
    display: none;
  }

  .gasco-lock .login-footer span:last-child {
    display: block;
    margin-top: 5px;
  }
}

@media (max-width: 360px) {
  .gasco-lock .lock-shell {
    padding: 12px;
  }

  .gasco-lock .lock-card {
    padding: 26px 18px 22px;
  }

  .gasco-lock .login-brand__divider {
    margin: 0 12px;
  }

  .gasco-lock .login-copy h2 {
    font-size: 27px;
  }
}
