/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  margin: 0;
  background: #0c111b;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c111b;
  color: #edf0f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-login-card {
  width: 320px;
  padding: 32px;
  background: #141a28;
  border: 1px solid #262f44;
  border-radius: 10px;
}

.admin-login-title {
  margin: 0 0 20px;
  font-size: 21px;
  font-weight: 800;
}

.admin-login-title .dim {
  color: #57607a;
}

.admin-login-error {
  margin: 0 0 16px;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(240, 84, 107, 0.13);
  color: #f0546b;
  font-size: 13px;
}

.admin-login-form label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8791ab;
  margin: 14px 0 6px;
}

.admin-login-form input[type="text"],
.admin-login-form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  background: #1c2334;
  border: 1px solid #262f44;
  color: #edf0f7;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 13px;
}

.admin-login-form input[type="submit"] {
  margin-top: 20px;
  width: 100%;
  background: #8368ff;
  border: 1px solid #8368ff;
  color: #fff;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* ---------- flash toast ---------- */
.flash-stack {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.flash-stack:empty {
  display: none;
}

.flash {
  --flash-accent: var(--accent, #8368ff);

  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border, #262f44);
  border-left: 3px solid var(--flash-accent);
  border-radius: var(--radius-md, 10px);
  background: var(--surface, #141a28);
  color: var(--text, #edf0f7);
  font-size: 0.8125rem;
  line-height: 1.4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  animation: flash-in 180ms ease-out;
  transition: opacity 180ms ease, transform 180ms ease;
}

.flash.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.flash::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 0.42em;
  border-radius: 50%;
  background: var(--flash-accent);
  flex-shrink: 0;
}

.flash-notice {
  --flash-accent: var(--up, #3fb878);
}

.flash-alert {
  --flash-accent: var(--down, #f0546b);
}

@keyframes flash-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flash {
    animation: none;
    transition: none;
  }
}

@media (max-width: 600px) {
  .flash-stack {
    top: 72px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}
