/* ============================================================
   Pantalla de acceso (EP001.1)

   Extraido del bloque <style> de extra/html/index.html: el mockup
   lo trae embebido en la pagina. Los overrides de .page y body son
   necesarios porque el cascaron de GobMX rompe el centrado del
   formulario.
   ============================================================ */
/* Override GobMX header/footer to not break the login layout */
.page { padding: 0 !important; margin: 0 !important; }
body { margin: 0 !important; padding: 0 !important; background-color: #13322B !important; }
main.page { background-color: #13322B !important; }
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.login-wrapper {
  font-family: 'Public Sans', sans-serif;
  background-color: #13322B;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
}

.login-top {
  padding: 2rem 2rem 0.5rem;
  text-align: center;
}

.login-top span {
  color: #fff;
  font-family: 'Noto Serif', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.login-center {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem 1.5rem 2rem;
}

.login-box {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 16px;
  padding: 3.5rem 3.5rem 3rem;
  box-shadow: 0 32px 80px -16px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

.login-box .top-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(to right, #42001d, #611232, #ab2f53);
}

.login-box .brand-area {
  text-align: center;
  margin-bottom: 2.75rem;
}

.login-box .brand-area h1 {
  font-family: 'Noto Serif', serif;
  font-size: 3.25rem;
  font-weight: 900;
  color: #611232;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
}

.login-box .brand-area p {
  color: #544246;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0;
}

.login-box .field-group {
  margin-bottom: 1.75rem;
}

.login-box .field-label {
  display: block;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #544246;
  margin-bottom: 0.625rem;
}

.login-box .field-wrap {
  position: relative;
}

.login-box .field-input {
  width: 100%;
  padding: 1.125rem 3rem 1.125rem 1.25rem;
  background: #f5f3f3;
  border: none;
  border-radius: 10px;
  font-family: 'Public Sans', sans-serif;
  font-size: 1.0625rem;
  color: #1b1c1c;
  transition: background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.login-box .field-input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2.5px rgba(97,18,50,0.2);
}

.login-box .field-input::placeholder {
  color: #867276;
  opacity: 0.5;
}

.login-box .field-icon {
  position: absolute;
  right: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  color: #867276;
  opacity: 0.4;
  pointer-events: none;
  font-size: 1.5rem;
}

.login-box .options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0.25rem 0;
}

.login-box .options-row label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
}

.login-box .options-row label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #611232;
  cursor: pointer;
}

.login-box .options-row label span {
  font-size: 1rem;
  color: #544246;
  font-weight: 500;
}

.login-box .options-row a {
  font-size: 1rem;
  font-weight: 600;
  color: #ab2f53;
  text-decoration: none;
}

.login-box .options-row a:hover {
  text-decoration: underline;
}

.login-box .submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1.25rem;
  background: #611232;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Public Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(97,18,50,0.25);
  transition: background 0.2s, transform 0.1s;
}

.login-box .submit-btn:hover {
  background: #42001d;
}

.login-box .submit-btn:active {
  transform: scale(0.98);
}

/* Regreso al portal publico, debajo del boton de acceso */
.login-box .portal-link {
  display: block;
  margin-top: 1.25rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #ab2f53;
  text-decoration: none;
}

.login-box .portal-link:hover {
  text-decoration: underline;
}

.login-box .footer-note {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e4e2e2;
  text-align: center;
}

.login-box .footer-note p {
  font-size: 0.9375rem;
  color: #544246;
  font-style: italic;
  font-weight: 500;
  margin: 0;
}

.login-bottom {
  padding: 1.75rem 2rem;
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
}

.login-bottom-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.login-bottom .inst-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  margin: 0;
  font-family: 'Public Sans', sans-serif;
}

.login-bottom .inst-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin: 0.125rem 0 0 0;
  font-family: 'Public Sans', sans-serif;
}

.login-bottom .copy {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.login-bottom .links {
  display: flex;
  gap: 1rem;
}

.login-bottom .links a {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.login-bottom .links a:hover {
  color: #fff;
}
