/* Tela de login unica (admin e cliente) — cartao centralizado, discreto,
   sobre um fundo com orbes de luz que se movem devagar. */

.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f9fe 0%, #e9f2fb 100%);
}

/* Fundo animado: manchas de cor desfocadas que flutuam lentamente. */
.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}

.login-orb-1 {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, #49b3d3, transparent 68%);
  animation: orb-float-1 18s ease-in-out infinite;
}

.login-orb-2 {
  width: 420px;
  height: 420px;
  bottom: -140px;
  right: -100px;
  background: radial-gradient(circle, #2f73bc, transparent 68%);
  animation: orb-float-2 22s ease-in-out infinite;
}

.login-orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, #7fd0e6, transparent 70%);
  opacity: 0.4;
  animation: orb-float-3 26s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.1); }
}

@keyframes orb-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 50px) scale(0.92); }
}

/* Respeita quem prefere menos animacao. */
@media (prefers-reduced-motion: reduce) {
  .login-orb {
    animation: none;
  }
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 372px;
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px rgba(31, 51, 71, 0.16);
  animation: card-entrada 500ms ease both;
}

@keyframes card-entrada {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.login-brand .brand-logo {
  height: 38px;
}

.login-card h1 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  text-align: center;
}

.login-card .login-hint {
  margin: 0 0 22px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.login-field {
  margin-bottom: 14px;
}

.login-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.login-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  color: var(--color-text);
  font-size: 0.92rem;
  outline: none;
  transition: 160ms ease;
}

.login-field input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47, 115, 188, 0.12);
}

.login-button {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.login-button:hover:not(:disabled) {
  background: var(--color-primary-strong);
}

.login-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.login-feedback {
  margin: 14px 0 0;
  min-height: 18px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c0392b;
}

.login-footer {
  display: block;
  margin: 22px 0 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}

.login-footer:hover {
  color: var(--color-primary);
}

@media (max-width: 420px) {
  .login-card {
    padding: 26px 20px;
  }
}
