@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
:root {
  --azul-escuro: #146677;
  --azul-claro: #edfaff;
  --azul-turquesa: #0fbce1;
  --azul-pastel: #e5f7ff;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--azul-escuro);
  background-image: linear-gradient(
    135deg,
    var(--azul-escuro) 0%,
    #0a3b45 100%
  );
  min-height: 100vh;
  position: relative;
}

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 180px);
  padding: 20px 0;
}

.card {
  width: 95%;
  max-width: 400px;
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

h2 {
  color: var(--azul-escuro);
  font-weight: 600;
  margin-bottom: 1.5rem !important;
}

.btn-custom {
  background-color: var(--azul-turquesa);
  color: #fff;
  border-radius: 5px;
  width: 100%;
  padding: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.btn-custom:hover {
  background-color: var(--azul-escuro);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-custom:active {
  transform: translateY(0);
}

.input-group {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  transition: box-shadow 0.3s ease;
}

.input-group:focus-within {
  box-shadow: 0 2px 10px rgba(15, 188, 225, 0.2);
}

.input-group .form-control {
  border-right: 0;
  padding: 12px;
}

.input-group .input-group-text {
  cursor: pointer;
  background-color: #fff;
  border-color: #ced4da;
}

.input-group .input-group-text:first-child {
  border-radius: 5px 0 0 5px;
}

.input-group .input-group-text:last-child {
  border-radius: 0 5px 5px 0;
}

.input-group .input-group-text i {
  color: var(--azul-escuro);
}

.form-check-label {
  margin-left: 5px;
  font-size: 0.9rem;
}

.form-check-input:checked {
  background-color: var(--azul-turquesa);
  border-color: var(--azul-turquesa);
}

#mensagem {
  min-height: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.login-links {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

.login-links a {
  color: var(--azul-turquesa);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.login-links a:hover {
  color: var(--azul-escuro);
  text-decoration: underline;
}

.navbar {
  font-size: 1.4em;
  color: #146677 !important;
  padding: 1.5rem 2rem;
  white-space: nowrap;
  font-weight: 500;
  background: white;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.nav-brand:hover .logo {
  transform: rotate(10deg);
}

.footer {
  background: transparent !important;
  color: #f2f2f2;
  padding: 20px 15px;
  font-size: 14px;
  text-align: center;
  width: 100%;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-info p,
.footer-dev p {
  margin: 5px 0;
  line-height: 1.4;
}

.footer-dev a {
  color: #b3e0ff;
  margin: 0 5px;
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-dev a:hover {
  color: #fff;
  transform: translateY(-3px);
  display: inline-block;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 0.25rem;
}

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

.is-invalid ~ .invalid-feedback {
  display: block;
}

.is-valid {
  border-color: #198754 !important;
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-3px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(3px, 0, 0);
  }
}

/* Animação de carregamento */
.loading .btn-text {
  visibility: hidden;
}

.loading .spinner-border {
  display: inline-block !important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 576px) {
  .navbar {
    padding: 1rem;
    font-size: 1.2em;
  }

  .login-wrapper {
    min-height: calc(100vh - 160px);
  }

  .card {
    width: 90%;
  }
}
