* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at center, #0f172a 0%, #090d16 100%);
  color: #e2e8f0;
  min-height: 100vh;
}

.login-page {
  display: flex;
  flex-direction: row;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

.right-side {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 100%;
}

.login-container {
  min-height: 520px;
  width: 580px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(225, 29, 72, 0.1);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(225, 29, 72, 0.15);
}

.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #090d16;
  margin: -30px -30px 25px -30px;
  padding: 32px 25px;
  border-radius: 15px 15px 0 0;
  border-bottom: 2px solid #e11d48;
}

.login-logo img {
  height: 128px;
  width: auto;
  max-width: 100%;
}

.login-title2 {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 24px;
  margin-top: 0;
}

.form-group-icon {
  display: flex;
  align-items: center;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group-icon:focus-within {
  border-color: #e11d48;
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.2);
}

.password-group {
  position: relative;
}

.icon-box {
  width: 12%;
  text-align: center;
  color: #94a3b8;
}

.form-control-icon {
  width: 78%;
  height: 48px;
  border: none;
  outline: none;
  padding: 12px 6px;
  font-size: 0.95em;
  background-color: transparent;
  color: #f8fafc;
}

.form-control-icon::placeholder {
  color: #64748b;
}

.login-button {
  width: 100%;
  height: 48px;
  padding: 12px;
  font-size: 1em;
  font-weight: 600;
  color: white;
  background-color: #e11d48;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.login-button:hover {
  background-color: #be123c;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.4);
}

.login-button:active {
  transform: scale(0.98);
}

.flashes {
  text-align: center;
  margin-bottom: 15px;
  min-height: 20px;
}

.flash-message {
  color: #f43f5e;
  font-size: 0.9em;
  font-weight: 500;
}

.login-links {
  text-align: center;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.login-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.2s ease;
}

.login-links a:hover {
  color: #e11d48;
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
  .login-container {
    width: 100%;
    margin: 10px;
    padding: 20px;
  }

  .login-logo {
    margin: -20px -20px 20px -20px;
    padding: 20px;
  }

  .login-logo img {
    height: 108px;
  }
}

/* Ícone para exibir/ocultar senha */
.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  cursor: pointer;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.toggle-password:hover {
  color: #e11d48;
  transform: translateY(-50%) scale(1.15);
}
