/* ═══════════════════════════════════════════════════════════
   LOGIN — Tela de autenticação nível app nativo
   ═══════════════════════════════════════════════════════════ */

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(5,150,105,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(52,211,153,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(5,150,105,0.04) 0%, transparent 50%),
    var(--bg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,0.06) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,0.05) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  pointer-events: none;
}

.login-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow:
    0 4px 24px rgba(5,150,105,0.08),
    0 20px 60px rgba(5,150,105,0.06);
  animation: loginEntry 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  z-index: 1;
}

@keyframes loginEntry {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  animation: loginEntry 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.login-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-grad);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 6px 24px rgba(5,150,105,0.35);
}

.login-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
}

.login-subtitle {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.5;
}

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

.login-field {
  margin-bottom: 16px;
  animation: loginEntry 0.4s ease both;
}

.login-field:nth-child(1) { animation-delay: 0.15s; }
.login-field:nth-child(2) { animation-delay: 0.2s; }

.login-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.login-field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  outline: none;
}

.login-field input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.login-field input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(5,150,105,0.1);
}

.login-field input:hover:not(:focus) {
  border-color: var(--border-strong);
}

.login-submit {
  width: 100%;
  padding: 15px 24px;
  background: var(--accent-grad);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(5,150,105,0.35);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-top: 8px;
  animation: loginEntry 0.4s ease 0.25s both;
}

.login-submit:hover {
  box-shadow: 0 8px 32px rgba(5,150,105,0.45);
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

.login-errors {
  background: rgba(239,68,68,0.08);
  border: 1.5px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  animation: shake 0.4s ease;
}

.login-errors ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.login-errors li {
  font-size: 0.8rem;
  color: #dc2626;
  font-weight: 600;
  line-height: 1.5;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  animation: loginEntry 0.4s ease 0.3s both;
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .login-logo-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .login-logo-text {
    font-size: 1.4rem;
  }
}
