:root {
  --brand: #00b894;
  --brand-dark: #019875;
  --ink: #12263a;
  --muted: #6b7c8f;
  --line: #e3e9f0;
  --bg: #f4f7fb;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(18, 38, 58, 0.12);
}

* {
  box-sizing: border-box;
}

body.page {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page--login .layout__content {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 860px;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.login__brand {
  padding: 56px 48px;
  color: var(--white);
  background: linear-gradient(150deg, var(--brand), var(--brand-dark));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login__logo {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  margin-bottom: 22px;
}

.login__title {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.5px;
}

.login__subtitle {
  margin: 8px 0 0;
  font-size: 16px;
  opacity: 0.9;
}

.login__form {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.login__heading {
  margin: 0 0 6px;
  font-size: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.field__input {
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.15);
}

.rol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  background: #fbfcfe;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}

.rol__option {
  position: relative;
  cursor: pointer;
}

.rol__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rol__btn {
  display: block;
  padding: 11px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 9px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.rol__option input:checked + .rol__btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 6px 16px rgba(0, 184, 148, 0.3);
}

.rol__option input:focus-visible + .rol__btn {
  box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.15);
}

.btn {
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  padding: 14px 20px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 24px rgba(0, 184, 148, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 184, 148, 0.45);
}

.login__hint {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.login__hint a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.alert--error {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.12);
}

.alert--ok {
  color: #019875;
  background: rgba(0, 184, 148, 0.14);
}

@media (max-width: 720px) {
  .login {
    grid-template-columns: 1fr;
  }

  .login__brand {
    padding: 36px 32px;
  }

  .login__form {
    padding: 36px 32px;
  }
}
