/* ===== AUTH BASE ===== */
body.auth-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f4f7f6 0%, #eef2f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== CARD ===== */
.auth-card {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 32px 36px 36px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* ===== LOGO ===== */
.auth-logo {
  margin-bottom: 20px;
}

.auth-logo img {
  width: 140px;
  height: auto;
}

/* ===== TITLES ===== */
.auth-card h1 {
  font-size: 22px;
  font-weight: 600;
  color: #0b2e1f;
  margin-bottom: 10px;
}

.auth-card p {
  font-size: 14px;
  color: #5f6f68;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ===== FORM ===== */
.auth-form {
  text-align: left;
}

.auth-form label {
  font-size: 13px;
  font-weight: 500;
  color: #344e41;
  margin-bottom: 6px;
  display: block;
}

.auth-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d8e0dd;
  font-size: 14px;
  margin-bottom: 18px;
}

.auth-form input:focus {
  outline: none;
  border-color: #2f855a;
}

/* ===== BUTTON ===== */
.auth-form button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background-color: #2f855a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-form button:hover {
  background-color: #276749;
}

/* ===== FOOTER LINK ===== */
.auth-footer {
  margin-top: 18px;
  text-align: center;
}

.auth-footer a {
  font-size: 13px;
  color: #2f855a;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}
.flash-container {
  margin-bottom: 1rem;
}

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.flash-success {
  background: #e6f4ea;
  color: #1e7e34;
}

.flash-error {
  background: #fdecea;
  color: #a71d2a;
}

.flash-warning {
  background: #fff4e5;
  color: #8a5a00;
}
.flash-container {
  margin: 10px 0 18px;
}

.flash {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  border: 1px solid transparent;
}

.flash-success {
  background: #eaf6ef;
  border-color: #bfe3cc;
  color: #1f5c3a;
}

.flash-warning {
  background: #fff7e6;
  border-color: #ffe0a3;
  color: #7a4b00;
}

.flash-error {
  background: #fdecec;
  border-color: #f5b5b5;
  color: #8a1f1f;
}

/* ===== BRAND / LOGO ===== */
.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-logo {
  max-width: 160px;   /* CONTROLE ABSOLUTO */
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== CARD ===== */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* ===== FORM ===== */
.form-control {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  font-size: 14px;
}

.form-control:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.15);
}

/* ===== BUTTON ===== */
.btn-primary {
  height: 44px;
  border-radius: 8px;
  background: #2e7d32;
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #256528;
}

.auth-flash {
  margin-bottom: 16px;
}

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.flash-success {
  background: #e6f4ea;
  color: #1e7f4f;
  border: 1px solid #b6e2c6;
}

.flash-error {
  background: #fdecea;
  color: #b42318;
  border: 1px solid #f5c2c0;
}
.input-with-icon{
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .form-control{
  padding-right: 44px;
}

.icon-btn{
  position: absolute;
  right: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: .7;
}

.icon-btn:hover{
  opacity: 1;
}
.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 44px; /* espaço pro ícone */
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
}

.toggle-password:hover {
  opacity: 1;
}

/* =========================================================
   AUTH RESET/FORGOT — inputs neutros + botão "olho" correto
   (colocar no FINAL do app.css para ganhar prioridade)
   ========================================================= */

.auth-shell .auth-inputWrap { position: relative; }

.auth-shell input.auth-input,
.auth-shell .auth-input {
  width: 100%;
  height: 44px;
  padding: 10px 44px 10px 12px; /* espaço para o olho */
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background-color: #fff !important; /* remove o verde */
  background-image: none !important;
  color: #0f1b17;
  outline: none;
  box-shadow: none;
}

.auth-shell input.auth-input:focus,
.auth-shell .auth-input:focus {
  border-color: rgba(24, 122, 84, .55);
  box-shadow: 0 0 0 3px rgba(24, 122, 84, .14);
}

/* Se algum CSS global estiver forçando background em inputs */
.auth-shell input[type="password"].auth-input,
.auth-shell input[type="text"].auth-input {
  background-color: #fff !important;
}

/* Autofill do Chrome (às vezes pinta campo) */
.auth-shell input.auth-input:-webkit-autofill,
.auth-shell input.auth-input:-webkit-autofill:hover,
.auth-shell input.auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f1b17;
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
  transition: background-color 9999s ease-out 0s;
}

/* Botão do olho no lugar certo (direita, centralizado) */
.auth-shell .auth-eyeBtn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 8px;
  background: transparent !important;
  color: rgba(0,0,0,.55);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.auth-shell .auth-eyeBtn:hover { color: rgba(0,0,0,.8); }
