:root {
  --primary: #ec6e60;
  --primary-dark: #c94f43;
  --background: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #fff;
  --input-bg: #eaf1ff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 .8rem 1.7rem rgba(15, 23, 42, .06);
  --shadow-lg: 0 1rem 2rem rgba(15, 23, 42, .08);
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
  font-family: 'Montserrat', sans-serif;
}

.fa-solid,
.fa-regular {
  font-family: 'Font Awesome 6 Free' !important;
}

.fa-solid {
  font-weight: 900 !important;
}

.fa-regular {
  font-weight: 400 !important;
}

.fa-brands {
  font-family: 'Font Awesome 6 Brands' !important;
  font-weight: 400 !important;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 110, 96, .10), transparent 26%),
    linear-gradient(180deg, var(--white) 0%, var(--background) 100%);
}

@media (min-width: 992px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
}

.login-main,
.login-row {
  min-height: 100vh;
}

@media (min-width: 992px) {
  .login-main,
  .login-row {
    height: 100vh;
    min-height: 100vh;
  }
}

.brand-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(236, 110, 96, .96), rgba(201, 79, 67, .96)),
    url("web/logos/GLR_LOGO.ico");
  background-size: cover, 620px;
  background-repeat: no-repeat;
  background-position: center;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .15), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, .09), transparent 34%);
}

.brand-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 3rem;
}

.brand-logo-card {
  width: 5.7rem;
  height: 5.7rem;
  border-radius: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px);
}

.brand-logo,
.mobile-logo {
  object-fit: cover;
}

.brand-logo {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1rem;
}

.section-eyebrow {
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand-title {
  font-size: clamp(1.85rem, 3.3vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.brand-description {
  max-width: 500px;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.55;
}

.info-card {
  max-width: 420px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 1.15rem;
  backdrop-filter: blur(10px);
}

.info-card strong {
  font-size: .86rem;
  font-weight: 800;
}

.info-card p {
  font-size: .76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .74);
}

.info-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .16);
}

.login-section {
  min-height: 100vh;
  padding: 1.15rem;
}

.login-wrapper {
  width: 100%;
  max-width: 390px;
}

.mobile-brand,
.login-card {
  border: 1px solid var(--border);
  border-radius: 1.35rem;
}

.mobile-brand {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.mobile-logo-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff4f2;
}

.mobile-logo {
  width: 3rem;
  height: 3rem;
  border-radius: .85rem;
}

.mobile-brand-title {
  color: var(--text);
  font-size: .98rem;
  font-weight: 850;
}

.mobile-brand-subtitle {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
}

.login-card {
  padding: 1.7rem;
  box-shadow: var(--shadow-sm), var(--shadow-lg);
}

.text-primary-custom {
  color: var(--primary);
}

.login-title {
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.login-subtitle {
  font-size: .86rem;
  line-height: 1.45;
  font-weight: 500;
}

.login-label {
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .42rem;
}

.login-alert {
  padding: .7rem .85rem;
  border: 0;
  font-size: .76rem;
  line-height: 1.45;
  font-weight: 650;
}

.form-control {
  height: 3.15rem;
  border-color: var(--border);
  background-color: var(--input-bg);
  color: var(--text);
  padding-top: .72rem;
  padding-bottom: .72rem;
  font-size: .86rem;
  font-weight: 550;
}

.form-control::placeholder {
  color: #8ca0bd;
}

.form-control:focus {
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(236, 110, 96, .14);
}

.input-icon {
  width: 2.45rem;
  color: #8ea1bd;
  z-index: 5;
  font-size: .82rem;
}

.input-with-icon {
  padding-left: 2.55rem;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-caps-lock-indicator {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}

.btn-password {
  position: absolute;
  top: 50%;
  right: .9rem;
  z-index: 6;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: #8ea1bd;
  background: transparent;
  transform: translateY(-50%);
  transition: color .2s ease;
}

.btn-password:hover {
  color: var(--primary);
}

.btn-login,
.btn-code-login {
  min-height: 3.15rem;
  border-radius: .95rem !important;
  font-size: .82rem;
  font-weight: 850 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: .2s ease;
}

.btn-login {
  color: var(--white) !important;
  background: var(--primary) !important;
  border: 1px solid var(--primary) !important;
}

.btn-login:hover {
  color: var(--white) !important;
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: 0 .65rem 1.25rem rgba(201, 79, 67, .20);
  transform: translateY(-1px);
}

.btn-code-login {
  color: var(--primary-dark) !important;
  background: #fff4f2 !important;
  border: 1px solid rgba(236, 110, 96, .34) !important;
}

.btn-code-login:hover {
  background: #ffe9e5 !important;
  border-color: rgba(236, 110, 96, .55) !important;
  transform: translateY(-1px);
}

.btn-code-login:disabled {
  opacity: .72;
  cursor: not-allowed;
  transform: none;
}

.codigo-verificacion-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.codigo-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.codigo-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 5.1rem;
  padding: .34rem .72rem;
  border-radius: 999px;
  color: #2563eb;
  background: #eaf2ff;
  border: 1px solid #93c5fd;
  font-size: .75rem;
  font-weight: 850;
  line-height: 1;
}

.codigo-inputs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  width: 100%;
  margin-top: .75rem;
}

.codigo-input {
  width: 3.55rem;
  height: 3.55rem;
  text-align: center;
  border-radius: .95rem;
  border: 1px solid rgba(236, 110, 96, .48);
  background: #ffffff;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 850;
  outline: none;
  transition: .18s ease;
}

.codigo-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 .18rem rgba(59, 130, 246, .16);
}

.codigo-help {
  text-align: center;
  max-width: 330px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.38;
  margin: .75rem auto 0;
}

.login-help p {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.45;
}

.login-help-highlight {
  color: var(--primary);
  font-weight: 850;
}

@media (max-width: 991.98px) {
  html,
  body {
    overflow-y: auto;
  }

  .login-main,
  .login-row {
    min-height: 100vh;
  }

  .login-section {
    min-height: 100vh;
    align-items: flex-start !important;
    padding: .9rem .8rem 1rem;
    background:
      radial-gradient(circle at top right, rgba(236, 110, 96, .12), transparent 22%),
      linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  }

  .login-wrapper {
    max-width: 100%;
  }

  .login-card {
    padding: 1.35rem;
    border-radius: 1.25rem;
  }

  .login-title {
    font-size: 1.55rem;
  }

  .login-subtitle {
    font-size: .82rem;
  }

  .form-control {
    height: 3rem;
  }

  .btn-login,
  .btn-code-login {
    min-height: 3rem;
  }

  .codigo-inputs {
    gap: .5rem;
  }

  .codigo-input {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: .85rem;
    font-size: 1.05rem;
  }

  .codigo-header {
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .login-card {
    padding: 1.15rem;
  }

  .codigo-inputs {
    gap: .38rem;
  }

  .codigo-input {
    width: 2.85rem;
    height: 2.85rem;
  }
}
