/* Login / registro — estilo institucional Chubut (compacto) */

body.suad-login-page {
  background: #e8eef0;
  background-image: none;
}

body.suad-login-page .suad-auth__media {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.suad-login-page.has-demo-banner .suad-auth__media {
  top: var(--demo-banner-height, 32px);
}

.suad-auth__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.suad-auth {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--demo-banner-height, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: transparent;
}

.suad-auth__card {
  width: min(100%, 380px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow:
    0 4px 12px rgba(31, 42, 46, 0.12),
    0 16px 40px rgba(47, 85, 99, 0.22);
  border: 1px solid var(--border);
  padding: 1.35rem 1.25rem 1.15rem;
}

.suad-auth__brand {
  text-align: center;
  margin-bottom: 1rem;
}

.suad-auth__logo-img {
  display: block;
  width: min(100%, 148px);
  height: auto;
  margin: 0 auto 0.55rem;
}

.suad-auth__app {
  margin: 0.15rem 0 0.1rem;
  font-size: 1.35rem;
  color: var(--chubut-blue-deep);
}

.suad-auth__app-sub {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.35;
}

.suad-auth__title {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
  text-align: center;
}

.suad-auth__form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.suad-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.82rem;
}

.suad-input {
  width: 100%;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  background: #fff;
  color: var(--text-primary);
}

.suad-input:focus {
  outline: 2px solid var(--chubut-yellow);
  border-color: var(--chubut-blue);
}

.suad-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.suad-password-wrap .suad-input {
  padding-right: 4.75rem;
}

.suad-password-toggle {
  position: absolute;
  right: 0.35rem;
  border: none;
  background: transparent;
  color: var(--chubut-blue);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
}

.suad-password-toggle:hover {
  background: var(--background);
}

.suad-field__error {
  margin: 0.25rem 0 0;
  color: var(--danger);
  font-size: 0.78rem;
}

.suad-field__hint {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.suad-turnstile {
  min-height: 65px;
}

.suad-turnstile .cf-turnstile {
  width: 100%;
}

.suad-auth__submit {
  width: 100%;
  margin-top: 0.15rem;
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

.suad-auth__footer {
  margin: 0.9rem 0 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.suad-auth__footer a {
  color: var(--chubut-orange);
  font-weight: 700;
  text-decoration: none;
}

.suad-auth__exit-form {
  margin: 0.85rem 0 0;
}

.suad-auth__exit {
  width: 100%;
  min-height: 38px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.suad-auth__exit:hover {
  background: var(--background);
  color: var(--text-primary);
}

.suad-auth__demo-note {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.suad-messages--auth {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.suad-alert {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.suad-messages--auth .suad-alert {
  margin-bottom: 0.4rem;
}

.suad-messages--auth .suad-alert:last-child {
  margin-bottom: 0;
}

.suad-alert--danger {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f5c6cb;
}

.suad-alert--warning {
  background: #fff8e6;
  color: #8a5a00;
  border: 1px solid #f0d48a;
}

.suad-alert--info {
  background: #e8f1f4;
  color: var(--chubut-blue-deep);
  border: 1px solid #c5d6dd;
}

.suad-alert--success {
  background: #e8f5e9;
  color: var(--success);
  border: 1px solid #c8e6c9;
}

@media (max-width: 480px) {
  .suad-auth__card {
    padding: 1.15rem 1rem;
  }
}
