/* Ajustes finos para mobile-first */
body {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  padding: 16px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #333;
}
.login-wrapper {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(46, 125, 50, 0.08);
  margin-bottom: 2rem;
  color: #2e7d32;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.card {
  border: 2px solid #4caf50;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #4caf50, #81c784);
}
@media (max-width: 360px) {
  .card { border-radius: 20px; }
  body { padding: 12px; }
}
.card-body {
  padding: 2rem 1.5rem;
}
.login-title {
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: #2e7d32;
  margin-bottom: 0.25rem;
}
.login-sub {
  color: #666;
  font-weight: 400;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  border-left: 4px solid #4caf50;
  padding-left: 0.75rem;
}
.input-group {
  margin-bottom: 1.25rem;
}
.input-group-text {
  background-color: var(--input-bg);
  border-right: none;
  border-color: var(--input-border);
  border-radius: 18px 0 0 18px;
  padding-left: 1rem;
  padding-right: 0.75rem;
  color: var(--input-color);
}
.form-control {
  border-left: none;
  border-color: var(--input-border);
  border-radius: 0 18px 18px 0;
  padding: 0.75rem 0.75rem 0.75rem 0;
  font-size: 1rem;
  background-color: var(--input-bg);
  color: var(--input-color);
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.15);
}
/* Botão principal */
.btn-login {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  border: none;
  border-radius: 18px;
  padding: 0.9rem 0;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.3px;
  color: white;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.5rem;
  box-shadow: 0 8px 20px -6px rgba(76, 175, 80, 0.6);
}
.btn-login:active {
  transform: scale(0.98);
  filter: brightness(0.9);
}

.btn-register {
  border: 1px solid #4caf50;
  border-radius: 18px;
  padding: 0.8rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: #2e7d32;
  background-color: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s;
}

.btn-register:hover {
  background-color: #f1f8e9;
  color: #1b5e20;
}

.btn-register:active {
  transform: scale(0.98);
}

.form-extra-link {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.forgot-link, .signup-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.forgot-link:hover, .signup-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 1.5rem 0 1.2rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--card-border);
}
.divider::before { margin-right: 0.75rem; }
.divider::after { margin-left: 0.75rem; }

.btn-social {
  border-radius: 40px;
  padding: 0.7rem 0;
  font-weight: 500;
  border: 1px solid var(--input-border);
  background-color: var(--input-bg);
  color: var(--text-main);
  transition: background 0.2s, border-color 0.2s;
  font-size: 1rem;
}
.btn-social:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1);
  border-color: var(--primary-color);
}
.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.15em;
  border: 2px solid var(--input-border);
  background-color: var(--input-bg);
}
.form-check-label {
  color: var(--text-main);
  user-select: none;
  padding-left: 4px;
}
.footer-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.swal-recuperacao-popup {
  border-radius: 24px;
  padding: 1.25rem;
}

.swal-recuperacao-html {
  margin: 0.5rem 0 0;
}

.swal-recuperacao-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.swal-recuperacao-label {
  color: #4a4a4a;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
}

.swal-recuperacao-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  background: var(--input-bg);
  color: var(--input-color);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.swal-recuperacao-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.12);
}

@media (max-width: 480px) {
  .swal-recuperacao-popup {
    width: calc(100vw - 24px) !important;
    padding: 1rem;
  }
}