/* =========================================================
   LOGIN.CSS - ESTILOS EXCLUSIVOS DA TELA DE AUTENTICAÇÃO
   ========================================================= */

.login-page {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* =====================================
   PAINEL DE LOGIN (.panel)
===================================== */

.panel {
  width: 100%;
  max-width: 440px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* =====================================
   BOTÃO DE VOLTAR (.back-link)
===================================== */

.back-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: fit-content !important;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background-color: transparent;
  transition: all 0.15s ease;
  margin-bottom: 8px;
}

.back-link:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background-color: rgba(136, 192, 208, 0.05);
}

.back-link i,
.back-link svg {
  width: 14px;
  height: 14px;
}

/* =====================================
   CABEÇALHO & LOGO (CENTRALIZADO & AJUSTADO)
===================================== */

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.login-logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto 10px auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(136, 192, 208, 0.25));
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-right: -0.18em;
  /* Anula a folga do letter-spacing no final */
  margin-bottom: 4px;
  color: var(--accent-cyan);
}

.login-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: -0.1em;
  /* Alinha perfeitamente o subtítulo */
}

/* =====================================
   FORMULÁRIO & INPUTS
===================================== */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.login-form .input {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  color: var(--text-main);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form .input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(136, 192, 208, 0.15);
}

.login-form .button {
  margin-top: 8px;
  width: 100%;
}

/* =====================================
   RODAPÉ DO PAINEL & LINKS EXTRA
===================================== */

.login-extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  text-align: center;
}

.separator {
  width: 100%;
  height: 1px;
  background-color: var(--panel-border);
  opacity: 0.5;
}

.links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.links a:hover {
  color: var(--accent-cyan);
}

/* =====================================
   TOAST NOTIFICATION (CANTO SUPERIOR DIREITO)
===================================== */

.toast-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background-color: #111827;
  border: 1px solid var(--danger, #bf616a);
  border-left: 4px solid var(--danger, #bf616a);
  border-radius: 6px;
  color: #f3f4f6;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast-notification i,
.toast-notification svg {
  color: var(--danger, #bf616a);
  flex-shrink: 0;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
   RESPONSIVIDADE (MOBILE)
===================================== */

@media (max-width: 480px) {
  .panel {
    padding: 24px 16px;
  }

  .login-logo-img {
    width: 55px;
    height: 55px;
    margin-bottom: 6px;
  }

  .logo {
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    margin-right: -0.12em;
  }

  .toast-notification {
    top: 12px;
    right: 12px;
    left: 12px;
    font-size: 0.75rem;
  }
}