/* Auth feedback + profile / logout header actions */

.auth-feedback {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease;
}

.auth-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-feedback.is-error {
  background: rgba(220, 76, 76, 0.12);
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, 0.22);
}

.auth-feedback.is-success {
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
  border: 1px solid rgba(46, 125, 50, 0.22);
}

/* Google button: keep existing styles; GIS control sits invisibly on top */
.aal-google-btn-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.aal-google-gis-host {
  position: absolute;
  inset: 0;
  opacity: 0.01;
  overflow: hidden;
  z-index: 2;
  cursor: pointer;
}

.aal-google-gis-host > div {
  width: 100% !important;
  height: 100% !important;
}

.login-card .auth-feedback.is-error {
  background: rgba(255, 120, 120, 0.16);
  color: #ffd4d4;
  border-color: rgba(255, 180, 180, 0.28);
}

.login-card .auth-feedback.is-success {
  background: rgba(120, 220, 150, 0.16);
  color: #d8ffe4;
  border-color: rgba(180, 255, 200, 0.28);
}

.btn-primary.is-loading,
.btn-login-red.is-loading {
  opacity: 0.78;
  pointer-events: none;
}

.btn-profile {
  gap: 10px;
  padding-inline: 12px 16px !important;
  max-width: min(220px, 46vw);
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  animation: aalProfileIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.btn-profile.is-visible {
  opacity: 1;
}

.btn-profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2a1d44;
  background: #f4ed78;
}

.btn-profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

[data-auth-actions] [data-auth-logout] {
  animation: aalProfileIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

@keyframes aalProfileIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-overlay {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.modal-overlay.active {
  opacity: 1;
}

.dashboard-empty {
  padding: 18px 16px;
  border: 1px dashed #ddd6df;
  border-radius: 8px;
  color: #756f78;
  font-size: 14px;
  background: #fafafa;
}

@media (max-width: 720px) {
  .btn-profile-name {
    max-width: 110px;
  }
}

@media (max-width: 480px) {
  .btn-profile-name {
    display: none;
  }
  .btn-profile {
    padding-inline: 10px !important;
  }
}
