input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  font-size: 1rem;
  color: #495057;
  background: #ffffff;
  padding: 0.5rem 0.5rem;
  border: 1px solid #ced4da;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  border-radius: 3px;
}

input:not([type="checkbox"]):not([type="radio"]):hover {
  border-color: #24a637;
}

input:not([type="checkbox"]):not([type="radio"]):focus {
  outline: 0 none;
  outline-offset: 0;
  box-shadow: 0 0 0 0.2rem #b7e0b8;
  border-color: #24a637;
}

/* Checkbox (ex.: "desconectar de outros dispositivos"): mantem o visual nativo,
   sem largura total nem borda de campo, com o verde da UECE. */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #24a637;
}

.forgot-password {
  color: #6c757d;
  cursor: pointer;
  transition: color 0.3s;
  text-decoration: none;
}

.forgot-password:hover {
  color: #24a637;
}

.login-page {
  padding-left: 2rem;
  padding-right: 2rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  border: 1px solid #dee2e6;
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.75rem;
  z-index: 1;
  max-width: 450px;
  width: 100%;
}

#kc-form-login {
  display: flex;
  flex-direction: column;
}

.form-group {
  width: 100%;
  margin-bottom: 1rem;
}

.form-options {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

#kc-login {
  width: 100%;
}

.title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  text-align: center;
  margin-bottom: 1rem;
}

.kc-alert {
  margin-bottom: 1rem;
}

.field-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.back-to-login {
  margin-bottom: 1rem;
  text-align: center;
}

.back-to-login a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s;
}

.back-to-login a:hover {
  color: #24a637;
}

.reset-password-info {
  margin-top: 1rem;
  text-align: center;
  color: #6c757d;
  font-size: 0.875rem;
}

.update-password-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.update-password-options {
  margin-bottom: 1rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.secondary-button {
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #16663a;
  background: #fff;
  border: 1px solid #16663a;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.secondary-button:hover {
  background: #16663a;
  color: #fff;
}

.secondary-button:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem #b7e0b8;
}

.login-button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

#kc-social-providers {
  margin-top: 1rem;
}

#kc-social-providers ul {
  list-style: none;
  padding: 0;
}

#try-another-way {
  display: block;
  margin-top: 1rem;
  text-align: center;
  color: #6c757d;
  text-decoration: none;
}

#try-another-way:hover {
  color: #24a637;
}
