/* Pantalla de ingreso: todo negro, con el logo arriba */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #000000;
  color: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
}

.login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login__form {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
}

.login__logo {
  display: block;
  width: 220px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 36px;
}

.login__title {
  margin: 0 0 28px;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.login__label {
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: #a3a3a3;
}

.login__input {
  margin-bottom: 20px;
  padding: 13px 14px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
}

/* La clave lleva el botón del ojo por dentro, a la derecha */
.login__clave {
  position: relative;
  margin-bottom: 20px;
}

.login__clave .login__input {
  width: 100%;
  margin-bottom: 0;
  padding-right: 50px;
}

.login__ver {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #a3a3a3;
  cursor: pointer;
}

.login__ver:hover,
.login__ver[aria-pressed="true"] {
  color: #f8b858;
}

.login__ojo {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login__ojo[hidden] {
  display: none;
}

.login__input:focus {
  outline: none;
  border-color: #f8b858;
}

.login__error {
  margin: -6px 0 18px;
  color: #ef6b6b;
  font-size: 0.875rem;
  text-align: center;
}

.login__button {
  padding: 14px;
  background: #f8b858;
  color: #000000;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.login__button:active {
  background: #e0a244;
}
