/* ============================================
   LOGIN ADMIN — Form estilo fornecido
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.login-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  background: #e0e0e0;
  color: #151717;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow-x: hidden;
}

body.login-page::before {
  content: '';
  position: fixed;
  inset: -20px;
  z-index: 0;
  background: url('fundoimg.png') center / cover no-repeat;
  filter: blur(12px);
  -webkit-filter: blur(12px);
}

::placeholder {
  font-family: inherit;
}

/* —— Container central —— */
.login {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* —— Formulário (transparente / vidro) —— */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 30px;
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.form-logo {
  display: block;
  width: 100%;
  max-width: 120px;
  height: auto;
  margin: 0 auto 10px;
}

.form button[type="submit"] {
  align-self: stretch;
}

.flex-column > label {
  color: rgba(255, 255, 255, 0.98);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.inputForm {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  transition: 0.2s ease-in-out;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.inputForm--password {
  padding-right: 50px;
}

.input {
  margin-left: 10px;
  border-radius: 10px;
  border: none;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  color: #1e293b;
}

.input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.input:focus {
  outline: none;
}

.inputForm:focus-within {
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.35);
}

.inputForm-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 0;
}

.inputForm-eye .login-eye-svg {
  flex-shrink: 0;
  display: block;
  pointer-events: none;
}

.inputForm-eye:hover {
  background: rgba(255, 255, 255, 0.2);
}

.inputForm--password {
  position: relative;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.flex-row > div > label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.flex-row > div input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #2d79f3;
  cursor: pointer;
}

.span {
  font-size: 14px;
  margin-left: 5px;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.span:hover {
  text-decoration: underline;
}

.button-submit {
  margin: 20px 0 10px 0;
  background: rgba(21, 23, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  height: 50px;
  width: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background 0.2s;
}

.button-submit:hover {
  background: rgba(21, 23, 23, 0.95);
}

.button-submit__loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.6s linear infinite;
  display: none;
}

.button-submit__loader.is-active {
  display: block;
}

.button-submit:has(.button-submit__loader.is-active) .button-submit__text {
  display: none;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

.form-error {
  font-size: 14px;
  color: #fef2f2;
  background: rgba(185, 28, 28, 0.5);
  border: 1px solid rgba(254, 202, 202, 0.5);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
}

.form-error:not([hidden]) {
  display: block;
}

.p {
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  margin: 5px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.p.line {
  margin-top: 10px;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.75);
}

.btn {
  margin-top: 10px;
  flex: 1;
  min-width: 0;
  height: 50px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1e293b;
  cursor: pointer;
  transition: 0.2s ease-in-out;
  font-family: inherit;
  font-size: 14px;
}

.btn:hover {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.35);
}

.flex-row--buttons {
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* —— Mobile —— */
@media (max-width: 480px) {
  body.login-page {
    padding: 1.25rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .form {
    padding: 24px 20px;
  }

  .form-logo {
    max-width: 100px;
  }

  .flex-row--buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
