:root {
  --amber: #FCB72B;
  --amber-dark: #d99a1e;
  --amber-light: #ffd97a;
  --link: #bfe3ff;
  --error: #ff8a80;
  --ink: #10151c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: "Poppins", "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  flex-direction: column;
}

.login-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.05);
}

.login-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 120% at 0% 50%, rgba(6,8,12,0.55) 0%, rgba(6,8,12,0) 60%),
    linear-gradient(90deg, rgba(6,8,12,0.75) 0%, rgba(6,8,12,0.42) 42%, rgba(6,8,12,0.12) 70%, rgba(6,8,12,0) 100%);
  z-index: 1;
}

.login-brand {
  position: relative;
  z-index: 2;
  padding: 34px 40px 0 90px;
  display: flex;
  align-items: center;
}

.login-logo {
  height: 30px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.login-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 40px 60px 90px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  color: #fff;
}

.login-card h1 {
  font-size: 2.3rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.15;
}

.login-sub {
  margin: 0 0 30px;
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.login-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  padding-bottom: 10px;
  transition: border-color 0.2s ease;
}
.login-field:focus-within {
  border-color: var(--amber);
}
.login-field:focus-within .login-icon {
  color: var(--amber);
}

.login-icon {
  width: 17px;
  height: 17px;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.login-field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 300;
  letter-spacing: 0.01em;
  padding: 2px 0;
}

.login-field input::placeholder { color: rgba(255,255,255,0.4); font-weight: 300; }

.toggle-eye {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  display: flex;
  transition: color 0.2s ease;
}
.toggle-eye:hover { color: var(--amber-light); }
.eye-icon { width: 17px; height: 17px; }

.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus,
.login-field input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: #fff;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
}

.login-remember input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--amber);
  cursor: pointer;
}

.login-error {
  margin: 0;
  min-height: 1.2em;
  color: var(--error);
  font-size: 0.82rem;
  font-weight: 400;
}

.login-btn {
  margin-top: 6px;
  background: linear-gradient(180deg, var(--amber-light), var(--amber-dark));
  color: #2a1c00;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(252,183,43,0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.login-btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(252,183,43,0.65); }
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

.login-help {
  margin: 22px 0 0;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  text-align: center;
}
.login-help a {
  color: var(--amber-light);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.login-help a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .login-content { padding: 30px 20px 40px; }
  .login-card { padding: 32px 24px; }
  .login-card h1 { font-size: 1.9rem; }
}

.login-logo--zoo { height: 30px; max-width: 100px; }
.login-error:empty { visibility: hidden; }
.login-aviso { margin: 0; color: #9be3b0; font-size: 0.82rem; font-weight: 400; }
