* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background:
    radial-gradient(1100px 520px at 10% -15%, rgba(95, 128, 165, 0.14), transparent 60%),
    #f5f7fb;
  color: #111827;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.logo {
  display: block;
  margin: 40px auto 10px;
  max-width: 170px;
}

.descricao {
  text-align: center;
  color: #5d6878;
  margin-bottom: 24px;
  font-size: 15px;
}

.login-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  max-width: 390px;
  width: 92%;
  margin: 0 auto;
}

.card-login {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(3, 29, 34, 0.09);
  width: 100%;
  border: 1px solid #d7e2ee;
}

.form-login label {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
  color: #31394f;
}

.form-login input {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #c7d6e8;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  background: #f8fbff;
}

.form-login input:focus {
  border-color: #5f80a5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(95, 128, 165, 0.12);
  background: #fff;
}

.senha-box {
  position: relative;
  display: block;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.toggle-senha {
  position: absolute;
  top: 24px;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c8084;
  z-index: 2;
  line-height: 1;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: #5f80a5;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:disabled {
  background: #9eb3cb;
  cursor: not-allowed;
}

.btn-primary:hover:not(:disabled) {
  background: #4d6f96;
  box-shadow: 0 6px 14px rgba(95, 128, 165, 0.24);
}

.btn-secondary {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 15px;
  color: #4d6f96;
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  background: #edf3fb;
}

.btn-secondary:hover {
  background: #dbe6f2;
}

.alerta {
  background: #ffe8e6;
  color: #b93636;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #ffd2cf;
}

.alerta.ok {
  background: #edf3fb;
  color: #5f80a5;
  border-bottom: 1px solid #c7d6e8;
}

.footer {
  text-align: center;
  padding: 20px;
  color: #8190a3;
  font-size: 13px;
  margin-top: auto;
}

.valid {
  border-color: #8fb0d4 !important;
}

.invalid {
  border-color: #e74c3c !important;
}

.link-aux {
  display: inline-block;
  margin-top: -6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #4d6f96;
  text-decoration: none;
}

.link-aux:hover {
  text-decoration: underline;
}

.helper-card {
  background: #f8fbff;
  border: 1px solid #d7e2ee;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  color: #31394f;
}

.helper-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.helper-card p {
  margin-bottom: 6px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .card-login {
    padding: 22px;
  }

  .btn-primary {
    font-size: 15px;
    padding: 12px;
  }
}

/* Premium auth refresh */
body {
  background:
    radial-gradient(640px 460px at 10% 0%, rgba(95, 128, 165, 0.32), transparent 62%),
    radial-gradient(620px 420px at 90% 10%, rgba(49, 57, 79, 0.48), transparent 64%),
    linear-gradient(135deg, #0c111d, #121a2b 52%, #070a12) !important;
  color: #f6f8fb;
  overflow-x: hidden;
}

.login-container {
  position: relative;
  gap: 0;
}

.login-title {
  color: #fff;
  text-align: center;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.05;
  margin: 6px 0 10px;
  letter-spacing: 0;
}

.login-kicker {
  margin: 4px auto 0;
  width: fit-content;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 700;
}

.login-glow {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
}

.login-glow-a {
  width: 210px;
  height: 210px;
  left: -88px;
  top: 118px;
  background: rgba(95, 128, 165, 0.28);
  animation: authFloat 6s ease-in-out infinite;
}

.login-glow-b {
  width: 160px;
  height: 160px;
  right: -72px;
  bottom: 40px;
  background: rgba(255, 255, 255, 0.08);
  animation: authFloat 7s ease-in-out infinite reverse;
}

.descricao {
  color: rgba(246, 248, 251, 0.66);
  line-height: 1.5;
}

.card-login {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.06)) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 24px !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}

.form-login label {
  color: rgba(246, 248, 251, 0.86);
}

.form-login input {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  appearance: none;
  -webkit-appearance: none;
}

.senha-box input {
  margin-bottom: 16px !important;
  padding-right: 48px !important;
}

.form-login input:-webkit-autofill,
.form-login input:-webkit-autofill:hover,
.form-login input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

.form-login input:focus {
  border-color: rgba(143, 176, 212, 0.9) !important;
  box-shadow: 0 0 0 4px rgba(95, 128, 165, 0.22) !important;
}

.toggle-senha {
  color: rgba(246, 248, 251, 0.62);
}

.btn-primary {
  min-height: 48px;
  background: linear-gradient(135deg, #5f80a5, #31394f) !important;
  box-shadow: 0 18px 44px rgba(49, 57, 79, 0.34) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #dce9f8 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.link-aux {
  color: #b9cce3;
}

.footer {
  color: rgba(246, 248, 251, 0.52);
}

@keyframes authFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, -14px, 0) scale(1.04); }
}
