/* ============================================================
   LiveTranslate login page (akquise-style two-column)
   ============================================================ */

body { min-height: 100vh; }

.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---------- left branded side ---------- */

.auth-side {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #0a0a0c;
  background-image:
    radial-gradient(80% 60% at 20% 85%, rgba(0, 113, 227, 0.42) 0%, transparent 55%),
    radial-gradient(60% 60% at 90% 10%, rgba(82, 113, 255, 0.30) 0%, transparent 55%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.50), rgba(10, 10, 12, 0.85));
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--s-7);
  border-right: 0;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  z-index: 2;
}

.auth-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-brand-text {
  display: grid;
  gap: 2px;
}

.auth-brand-text strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #fff;
}

.auth-brand-text small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
}

.auth-hero {
  align-self: center;
  max-width: 480px;
  z-index: 2;
}

.auth-heading {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--s-4);
}

.auth-heading span {
  background: linear-gradient(90deg, #2997ff 0%, #6bb6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-lede {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 440px;
  margin-bottom: var(--s-5);
}

.auth-meta {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #2997ff;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(41, 151, 255, 0.16);
}

.auth-side-foot {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  z-index: 2;
}

/* ---------- right form side ---------- */

.auth-panel {
  display: grid;
  place-items: center;
  padding: var(--s-7) var(--s-6);
  background: var(--c-bg);
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--c-text-strong);
}

.auth-sub {
  font-size: 14px;
  color: var(--c-muted);
  margin-top: 4px;
  margin-bottom: var(--s-5);
}

#login-form { display: grid; gap: var(--s-3); }

.field { display: grid; gap: 6px; }

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
}

.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  background: var(--c-bg-elevated);
  font-size: 15px;
  color: var(--c-text);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-accent-bg);
}

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-muted);
  border: 0;
  cursor: pointer;
}

.pw-toggle:hover { background: var(--c-surface); color: var(--c-text); }
.pw-toggle:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 120ms ease, transform 80ms ease;
}

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
}
.btn-primary:hover { background: var(--c-accent-strong); }
.btn-primary:active { transform: scale(0.98); }

.btn-block { width: 100%; }

.form-error {
  background: rgba(255, 59, 48, 0.12);
  color: var(--c-danger);
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
}

.auth-alt {
  font-size: 13px;
  color: var(--c-muted);
  text-align: center;
  margin-top: var(--s-3);
}

.auth-alt a {
  color: var(--c-accent);
  text-decoration: none;
  font-weight: 600;
}
.auth-alt a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: 220px 1fr; }
  .auth-side { padding: var(--s-5); grid-template-rows: auto auto auto; }
  .auth-heading { font-size: 36px; margin-bottom: var(--s-2); }
  .auth-lede { font-size: 14px; margin-bottom: 0; }
  .auth-side-foot { display: none; }
  .auth-panel { padding: var(--s-5) var(--s-4); }
  .auth-card { max-width: 100%; }
}

@media (max-width: 480px) {
  .auth { grid-template-rows: 180px 1fr; }
  .auth-heading { font-size: 28px; }
  .auth-title { font-size: 22px; }
}
