/* login.css - Premium Redesign */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  /* Deep Blue Gradient */
  display: flex;
  flex-direction: column;
  /* Stacks icon and container */
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  color: #333;
  padding: 20px;
  /* Padding for mobile edges */
  box-sizing: border-box;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.iconLogin {
  width: 80px;
  height: auto;
  margin-bottom: 30px;
  /* Increased margin to separate from modal */
  display: block;
}

h2 {
  margin-bottom: 30px;
  color: #1a202c;
  font-weight: 700;
  font-size: 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-form input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #f8fafc;
  color: #2d3748;
  box-sizing: border-box;
  /* IMPORTANT: ensures padding doesn't affect width */
}

.login-form input:focus,
.login-form select:focus {
  border-color: #3182ce;
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group {
  text-align: left;
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 5px;
}

.login-form select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #f8fafc;
  color: #2d3748;
  box-sizing: border-box;
  appearance: none;
  cursor: pointer;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group .form-control {
  padding-right: 45px;
  /* Space for eye icon */
  margin-bottom: 0;
}

.input-group-append {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 10;
}

.toggle-password {
  background: transparent;
  border: none;
  color: #718096;
  cursor: pointer;
  padding: 0 15px;
  /* Added horizontal padding for easier clicking */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  outline: none !important;
  box-shadow: none !important;
}

.toggle-password:hover {
  color: #3182ce;
}

button[type="submit"] {
  background: linear-gradient(to right, #3182ce, #2b6cb0);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}

#recuperarSenhaButton {
  background: none;
  border: none;
  color: #718096;
  font-size: 14px;
  cursor: pointer;
  margin-top: 15px;
  text-decoration: underline;
  transition: color 0.2s;
}

#recuperarSenhaButton:hover {
  color: #2b6cb0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container {
  animation: fadeIn 0.6s ease-out;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }

  h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
}