/* Admin login — matches DigitalMeni LP brand (teal #19535C) */
:root {
  --al-bg: #f3f7f8;
  --al-surface: #ffffff;
  --al-ink: #123f47;
  --al-muted: #5b6b73;
  --al-line: rgba(25, 83, 92, .14);
  --al-brand: #19535c;
  --al-brand-2: #2a8a96;
  --al-amber: #d97706;
  --al-shadow: 0 20px 55px rgba(25, 83, 92, .14);
  --al-font: "Gilroy", "Segoe UI", system-ui, sans-serif;
  --al-ease: cubic-bezier(.22, 1, .36, 1);
}

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

html, body {
  margin: 0;
  min-height: 100%;
}

body.admin-login {
  min-height: 100svh;
  font-family: var(--al-font);
  color: var(--al-ink);
  background: var(--al-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.al-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  min-height: 100svh;
}

/* Brand / atmosphere panel */
.al-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 64px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.al-brand-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url(../../assets/lp/ambiance-1.jpg) center / cover no-repeat;
  transform: scale(1.04);
  animation: al-ken 22s var(--al-ease) infinite alternate;
}

.al-brand-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(165deg, rgba(18, 63, 71, .55) 0%, rgba(25, 83, 92, .78) 48%, rgba(12, 40, 46, .92) 100%),
    radial-gradient(60% 50% at 20% 80%, rgba(42, 138, 150, .35), transparent 70%);
}

.al-brand-logo {
  margin: 0 0 22px;
  max-width: min(220px, 72%);
  animation: al-rise .65s var(--al-ease) both;
}

.al-brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .28));
}

.al-brand-mark {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  animation: al-rise .7s var(--al-ease) both;
}

.al-brand-line {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  opacity: .92;
  animation: al-rise .7s var(--al-ease) .08s both;
}

.al-brand-meta {
  margin-top: 28px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
  animation: al-rise .7s var(--al-ease) .16s both;
}

/* Form panel */
.al-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 48px);
  background: var(--al-surface);
  border-left: 1px solid var(--al-line);
  animation: al-slide .65s var(--al-ease) both;
}

.al-panel-head {
  margin-bottom: 32px;
}

.al-panel-kicker {
  margin: 0 0 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--al-brand-2);
}

.al-panel-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.al-panel-head p {
  margin: 0;
  color: var(--al-muted);
  font-size: .98rem;
}

.al-form {
  width: 100%;
  max-width: 400px;
}

.al-field {
  margin-bottom: 18px;
}

.al-field label {
  display: block;
  margin-bottom: 8px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--al-muted);
}

.al-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.al-field-wrap i {
  position: absolute;
  left: 16px;
  color: var(--al-brand);
  font-size: .9rem;
  pointer-events: none;
  opacity: .85;
}

.al-field input {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--al-line);
  border-radius: 12px;
  outline: none;
  background: var(--al-bg);
  color: var(--al-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.al-field input::placeholder {
  color: #8a9aa1;
  font-weight: 400;
}

.al-field input:focus {
  border-color: var(--al-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(25, 83, 92, .14);
}

.al-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(217, 119, 6, .1);
  border: 1px solid rgba(217, 119, 6, .28);
  color: var(--al-amber);
  font-size: .88rem;
  font-weight: 700;
  animation: al-rise .4s var(--al-ease) both;
}

.al-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--al-brand), var(--al-brand-2));
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(25, 83, 92, .28);
  transition: transform .2s var(--al-ease), box-shadow .2s, filter .2s;
}

.al-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(25, 83, 92, .34);
  filter: brightness(1.05);
}

.al-submit:active {
  transform: translateY(0);
}

.al-submit i {
  font-size: .85rem;
  transition: transform .25s var(--al-ease);
}

.al-submit:hover i {
  transform: translateX(3px);
}

.al-foot {
  margin-top: 28px;
  font-size: .82rem;
  color: var(--al-muted);
}

.al-foot a {
  color: var(--al-brand);
  font-weight: 700;
  text-decoration: none;
}

.al-foot a:hover {
  text-decoration: underline;
}

@keyframes al-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes al-slide {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes al-ken {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}

@media (max-width: 880px) {
  .al-shell {
    grid-template-columns: 1fr;
  }

  .al-brand {
    min-height: 32svh;
    justify-content: flex-end;
    padding: 28px 24px;
  }

  .al-brand-mark {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .al-brand-line {
    max-width: 36ch;
    font-size: .98rem;
  }

  .al-panel {
    border-left: 0;
    border-top: 1px solid var(--al-line);
    flex: 1;
    padding-top: 36px;
    animation-name: al-rise;
  }

  .al-form {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .al-brand-media,
  .al-brand-mark,
  .al-brand-line,
  .al-brand-meta,
  .al-panel,
  .al-error {
    animation: none !important;
  }
}
