:root {
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --color-brand: #4f46e5;
  --color-brand-soft: #eef2ff;
  --auth-gradient-start: #1e1b4b;
  --auth-gradient-mid: #4f46e5;
  --auth-gradient-end: #a5b4fc;
}

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

body.bravo-admin-login {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  line-height: 1.5;
  color: #0f172a;
  background: #f8fafc;
}

.bravo-admin-login a {
  color: var(--color-brand);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 120% 80% at 0% 100%, rgba(255, 255, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(155deg, var(--auth-gradient-start) 0%, var(--auth-gradient-mid) 42%, var(--auth-gradient-end) 100%);
}

.auth-brand__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-brand__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.auth-brand__blob--1 {
  width: 280px;
  height: 280px;
  top: -70px;
  right: -50px;
  background: rgba(255, 255, 255, 0.35);
}

.auth-brand__blob--2 {
  width: 220px;
  height: 220px;
  bottom: 10%;
  left: -70px;
  background: rgba(129, 140, 248, 0.5);
}

.auth-brand__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 92%);
}

.auth-brand__shine {
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 65%);
  pointer-events: none;
}

.auth-brand__content {
  position: relative;
  z-index: 1;
}

.auth-brand__badge {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 1.1rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
}

.auth-brand__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.auth-brand__logo {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.auth-brand__tagline {
  margin: 0.65rem 0 0;
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.55;
}

.auth-brand__features {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.auth-brand__features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-brand__check {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
}

.auth-brand__footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-brand__copyright {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.auth-brand__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.auth-brand__version {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}

.auth-env-badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

.auth-panel__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, var(--color-brand-soft), transparent 60%),
    radial-gradient(ellipse 55% 45% at 5% 95%, rgba(79, 70, 229, 0.07), transparent 55%),
    radial-gradient(circle at 50% 50%, #fff 0%, #f8fafc 100%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 2rem 2rem 2.25rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid #e8edf3;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 48px -12px rgba(79, 70, 229, 0.18);
}

.auth-card__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef2f6;
}

.auth-card h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.auth-card__subtitle {
  margin: 0.5rem 0 0;
  color: #64748b;
  font-size: 0.975rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-group:hover {
  border-color: #cbd5e1;
}

.input-group:focus-within {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px var(--color-brand-soft);
  background: #fff;
}

.input-group__icon {
  flex-shrink: 0;
  display: flex;
  color: #64748b;
}

.input-group input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 0;
  border: none;
  background: transparent;
  font: inherit;
  outline: none;
}

.btn--login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--auth-gradient-mid) 0%, var(--auth-gradient-end) 100%);
  box-shadow: 0 8px 24px -6px rgba(79, 70, 229, 0.5);
}

.btn--login:hover {
  filter: brightness(1.03);
}

.errornote {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #dc2626;
  background: #fef2f2;
  list-style: none;
}

.errornote li {
  margin: 0;
}

.lang-switch {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.lang-switch__btn {
  min-width: 2.5rem;
  padding: 0.38rem 0.7rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  cursor: pointer;
}

.lang-switch__btn--active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.lang-switch-form {
  margin: 0;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand__features {
    display: none;
  }

  .auth-brand {
    padding: 1.5rem 1.75rem;
  }
}
