/* ================================================================
   AUTH ADDITIONS
   Complements auth + sidebar uniquement
   ================================================================ */

.sidebar__user-block {
  margin: 10px 12px 12px;
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sidebar__user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.sidebar__user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar__user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.sidebar__user-name {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__user-role {
  display: block;
  font-size: 0.68rem;
  color: rgba(232, 132, 154, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
}

.page-header__actions .header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 12px;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--ink-soft) !important;
  box-shadow: var(--sh-xs) !important;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.15s;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}

.page-header__actions .header-icon-btn:hover {
  background: var(--surface-2) !important;
  border-color: var(--cr-300) !important;
  color: var(--cr-600) !important;
  transform: translateY(-1px);
  text-decoration: none;
}

.page-header__actions .header-icon-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

.login-password-wrap {
  position: relative;
}

.login-password-wrap input {
  padding-right: 58px;
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(45, 55, 72, 0.56);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  padding: 0;
}

.login-password-toggle:hover,
.login-password-toggle:active {
  background: rgba(196, 42, 74, 0.06);
  color: var(--cr-600);
  transform: translateY(-50%);
  box-shadow: none;
}

.login-password-toggle svg {
  width: 18px;
  height: 18px;
}

/* ── Login page ─────────────────────────────────────────────── */

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 16%, rgba(196, 42, 74, 0.18), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(107, 18, 34, 0.12), transparent 30%),
    linear-gradient(135deg, #faf7f8 0%, #ede3e7 100%);
  position: relative;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.32;
  pointer-events: none;
}

.login-page::after {
  content: "";
  position: fixed;
  inset: auto auto -120px -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 42, 74, 0.12), transparent 70%);
  pointer-events: none;
}

.login-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 38px 24px;
  position: relative;
  z-index: 1;
}

.login-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 42px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(13, 17, 23, 0.12),
    0 18px 45px rgba(13, 17, 23, 0.08);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  position: relative;
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: inherit;
  pointer-events: none;
}

.login-shell__brand {
  order: 2;
  position: relative;
  padding: 60px 48px;
  background:
    radial-gradient(circle at 0% 0%, rgba(232, 132, 154, 0.22), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(74, 10, 22, 0.35), transparent 50%),
    linear-gradient(165deg, #4a0a16 0%, #6b1222 35%, #8b1a30 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.login-shell__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.login-shell__brand::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.login-shell__form {
  order: 1;
  padding: 54px 48px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(196, 42, 74, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 252, 0.98) 100%);
}

.login-brand__content {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.login-brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.login-brand__logo-wrap {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 28px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -30px 60px rgba(255, 255, 255, 0.015);
}

.login-brand__logo-wrap::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  filter: blur(8px);
  opacity: 0.8;
}

.login-brand__logo {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-width: 100%;
  display: block;
  opacity: 0.99;
  margin: 0 auto;
  filter: brightness(0) invert(1) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.22));
}

.login-brand__divider {
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.login-brand__caption {
  margin: 0;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
}

.login-form-panel {
  width: 100%;
  max-width: 450px;
  position: relative;
}

.login-form-header {
  margin-bottom: 24px;
}

.login-form-header .page-header__eyebrow {
  margin-bottom: 10px;
}

.login-form-header h2 {
  margin: 0 0 12px;
  font-size: 3rem;
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--ink);
}

.login-form-subtitle {
  margin: 0;
  color: rgba(45, 55, 72, 0.9);
  font-size: 1rem;
}

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: 16px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  box-shadow: var(--sh-xs);
}

.login-error svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.login-form {
  padding: 32px;
  border-radius: 30px;
  border: 1px solid rgba(213, 220, 231, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9));
  box-shadow:
    0 22px 48px rgba(13, 17, 23, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-form__group + .login-form__group {
  margin-top: 20px;
}

.login-form__group label {
  margin-bottom: 8px;
  color: var(--ink-mid);
  font-size: 0.84rem;
  font-weight: 700;
}

.login-input-wrap {
  position: relative;
}

.login-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #8c97aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.login-input-icon svg {
  width: 20px;
  height: 20px;
}

.login-form__group input {
  width: 100%;
  min-height: 60px;
  padding: 0 16px 0 50px;
  border: 1.5px solid #d6deea;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 252, 254, 0.98));
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s,
    transform 0.15s;
  box-shadow: inset 0 1px 1px rgba(13, 17, 23, 0.02);
}

.login-form__group input::placeholder {
  color: #99a3b4;
}

.login-form__group input:focus {
  background: #fff;
  border-color: var(--cr-500);
  box-shadow: 0 0 0 4px rgba(196, 42, 74, 0.1);
}

.login-form__group input:focus + .login-password-toggle,
.login-input-wrap:focus-within .login-input-icon {
  color: var(--cr-500);
}

.login-form__group input:-webkit-autofill,
.login-form__group input:-webkit-autofill:hover,
.login-form__group input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow:
    0 0 0 1000px rgba(255, 255, 255, 0.96) inset,
    0 0 0 4px transparent;
  transition: background-color 9999s ease-in-out 0s;
}

.btn-login {
  width: 100%;
  min-height: 60px;
  margin-top: 26px;
  border-radius: 18px;
  font-size: 0.98rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cr-500), var(--cr-600));
  box-shadow:
    0 16px 30px rgba(196, 42, 74, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow:
    0 20px 36px rgba(196, 42, 74, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-form-note {
  margin: 14px 0 0;
  text-align: center;
  color: rgba(45, 55, 72, 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* ── Tablet landscape — switch to single column ──────────────── */
@media (max-width: 960px) {
  .login-page {
    background:
      radial-gradient(circle at 0% 0%, rgba(232, 132, 154, 0.18), transparent 40%),
      radial-gradient(circle at 100% 100%, rgba(74, 10, 22, 0.3), transparent 45%),
      linear-gradient(165deg, #1a060b 0%, #3b0815 35%, #5a1021 70%, #6b1222 100%);
    display: flex;
    align-items: flex-start; /* Forcer l'alignement en haut */
    justify-content: center;
    padding-top: 20px;
  }

  .login-page::before {
    background:
      linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.5;
  }

  .login-page::after {
    display: none;
  }

  .login-stage {
    padding: 0 16px 120px;
    min-height: auto; /* Supprimer le min-height qui cause des sauts avec dvh */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
  }

  .login-shell {
    grid-template-columns: 1fr;
    width: 100%; /* Occuper toute la largeur pour le logo */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
  }

  .login-shell::before {
    display: none;
  }

  /* ── Brand: logo compact en haut ── */
  .login-shell__brand {
    order: 1;
    padding: 0 20px 20px;
    background: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .login-shell__brand::before,
  .login-shell__brand::after {
    display: none;
  }

  .login-brand__content {
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: none;
  }

  .login-brand__badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
  }

  .login-brand__logo-wrap {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
  }

  .login-brand__logo-wrap::before {
    display: none;
  }

  .login-brand__logo {
    width: min(600px, 95vw);
    filter: brightness(0) invert(1) drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5));
    transform: scale(1.25); /* Boost massif */
    margin: 20px 0;
  }

  .login-brand__divider { display: none; }
  .login-brand__caption { display: none; }

  /* ── Form: toute la panel devient une carte blanche ── */
  .login-shell__form {
    order: 2;
    padding: 0 16px; /* Ajout d'une marge sur les côtés pour la forme */
    background: none;
  }

  .login-form-panel {
    max-width: 440px; /* On limite la largeur du formulaire pour qu'il reste centré et lisible */
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 28px;
    padding: 36px 28px 32px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
      0 30px 70px rgba(0, 0, 0, 0.25),
      0 12px 28px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 1);
  }

  .login-form-header {
    margin-bottom: 22px;
  }

  .login-form-header .page-header__eyebrow {
    color: var(--cr-500);
  }

  .login-form-header h2 {
    font-size: 2.2rem;
    color: var(--ink);
  }

  .login-form-subtitle {
    color: rgba(45, 55, 72, 0.85);
    font-size: 0.95rem;
  }

  /* Le formulaire interne n'a plus besoin de style card */
  .login-form {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

/* ── Small tablets / large phones ────────────────────────────── */
@media (max-width: 640px) {
  .sidebar__user-block {
    margin: 8px 10px 10px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .sidebar__user-info { gap: 10px; }
  .sidebar__user-avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 0.74rem; }
  .sidebar__user-name { font-size: 0.9rem; }
  .sidebar__user-role { font-size: 0.62rem; letter-spacing: 0.1em; }

  .login-stage {
    padding: 24px 16px;
  }

  .login-shell {
    width: 100%;
  }

  .login-shell__brand {
    padding: 0 16px 24px;
  }

  .login-brand__logo {
    width: min(450px, 95vw);
  }

  .login-brand__badge {
    min-height: 28px;
    padding: 0 12px;
    font-size: 0.64rem;
  }

  .login-brand__caption {
    display: none;
  }

  .login-form {
    padding: 28px 22px 26px;
    border-radius: 24px;
  }

  .login-form-header h2 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    margin-bottom: 8px;
  }

  .login-form-subtitle {
    font-size: 0.9rem;
  }

  .login-form__group input,
  .btn-login {
    min-height: 52px;
    border-radius: 14px;
  }

  .login-form__group input {
    padding: 0 14px 0 44px;
    font-size: 0.86rem;
  }

  .login-input-icon {
    left: 14px;
    width: 18px;
    height: 18px;
  }

  .login-input-icon svg {
    width: 18px;
    height: 18px;
  }

  .btn-login {
    margin-top: 20px;
    font-size: 0.92rem;
  }

  .login-form-note {
    font-size: 0.68rem;
    margin-top: 10px;
  }

  .login-form__group + .login-form__group {
    margin-top: 16px;
  }
}

/* ── Phones ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .login-stage {
    padding: 10px 12px 100px;
    justify-content: flex-start;
  }

  .login-shell__brand {
    padding: 0 12px 20px;
  }

  .login-brand__content {
    gap: 10px;
  }

  .login-brand__badge {
    min-height: 24px;
    padding: 0 10px;
    font-size: 0.58rem;
  }

  .login-brand__logo {
    width: min(400px, 95vw);
  }

  .login-form {
    padding: 24px 18px 22px;
    border-radius: 20px;
  }

  .login-form-header {
    margin-bottom: 16px;
  }

  .login-form-header h2 {
    font-size: clamp(1.6rem, 9vw, 2rem);
  }

  .login-form-subtitle {
    font-size: 0.84rem;
  }

  .login-form__group input,
  .btn-login {
    min-height: 48px;
    border-radius: 12px;
  }

  .login-form__group input {
    padding: 0 12px 0 40px;
  }

  .login-input-icon {
    left: 12px;
    width: 16px;
    height: 16px;
  }

  .login-input-icon svg {
    width: 16px;
    height: 16px;
  }

  .btn-login {
    margin-top: 16px;
  }

  .login-form__group + .login-form__group {
    margin-top: 14px;
  }

  .login-form__group label {
    font-size: 0.78rem;
    margin-bottom: 6px;
  }

  .login-password-toggle {
    width: 36px;
    height: 36px;
    right: 6px;
  }

  .login-password-wrap input {
    padding-right: 48px;
  }
}

/* ── Very small phones (≤380px) ──────────────────────────────── */
@media (max-width: 380px) {
  .sidebar__user-block {
    margin: 6px 6px 6px;
    padding: 8px 8px;
  }

  .sidebar__user-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.68rem;
  }

  .sidebar__user-name {
    font-size: 0.82rem;
  }

  .sidebar__user-role {
    font-size: 0.58rem;
  }

  .login-stage {
    padding: 6px;
  }

  .login-shell {
    border-radius: 14px;
  }

  .login-shell__brand {
    padding: 14px 10px;
  }

  .login-shell__brand::after {
    display: none;
  }

  .login-shell__form {
    padding: 20px 12px 16px;
  }

  .login-form {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .login-form-header {
    margin-bottom: 14px;
  }

  .login-form-header h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }

  .login-form-subtitle {
    font-size: 0.82rem;
  }

  .login-brand__logo-wrap {
    min-height: 80px;
    padding: 10px 8px;
    border-radius: 12px;
  }

  .login-brand__badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.56rem;
  }

  .login-brand__logo {
    width: min(150px, 80%);
  }

  .login-form__group input,
  .btn-login {
    min-height: 44px;
    border-radius: 10px;
    font-size: 0.84rem;
  }

  .login-form__group input {
    padding: 0 10px 0 36px;
  }

  .login-input-icon {
    left: 10px;
  }

  .btn-login {
    margin-top: 14px;
    font-size: 0.88rem;
  }

  .login-form-note {
    font-size: 0.62rem;
    margin-top: 8px;
  }

  .login-form__group + .login-form__group {
    margin-top: 12px;
  }

  .login-password-toggle {
    width: 32px;
    height: 32px;
    right: 4px;
  }

  .login-password-wrap input {
    padding-right: 42px;
  }
}

/* ── Landscape phones — ensure form doesn't get squished ─────── */
@media (max-height: 500px) and (orientation: landscape) {
  .login-stage {
    padding: 8px;
    align-items: flex-start;
  }

  .login-shell {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-height: 100vh;
  }

  .login-shell__brand {
    padding: 16px;
  }

  .login-shell__form {
    padding: 16px;
  }

  .login-brand__logo-wrap {
    min-height: 0;
    padding: 12px;
  }

  .login-brand__badge,
  .login-brand__divider,
  .login-brand__caption {
    display: none;
  }

  .login-brand__content {
    gap: 0;
  }

  .login-brand__logo {
    width: min(200px, 80%);
  }

  .login-form {
    padding: 16px;
  }

  .login-form-header {
    margin-bottom: 12px;
  }

  .login-form-header h2 {
    font-size: 1.6rem;
    margin-bottom: 4px;
  }

  .login-form__group input,
  .btn-login {
    min-height: 42px;
  }

  .login-form__group + .login-form__group {
    margin-top: 10px;
  }

  .btn-login {
    margin-top: 14px;
  }
}

/* Override mobile login layout */
@media (max-width: 640px) {
  .login-stage {
    min-height: 100dvh;
    padding: 8px;
    align-items: stretch;
  }

  .login-shell {
    width: 100%;
    min-height: calc(100dvh - 16px);
    border-radius: 20px;
    grid-template-rows: auto auto;
  }

  .login-shell__form {
    padding: 18px 14px 10px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .login-form {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .login-form-header {
    margin-bottom: 14px;
  }

  .login-form-header h2 {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
    margin-bottom: 6px;
  }

  .login-form-subtitle {
    font-size: 0.88rem;
  }

  .login-form__group + .login-form__group {
    margin-top: 12px;
  }

  .login-form__group input,
  .btn-login {
    min-height: 46px;
    border-radius: 12px;
  }

  .login-form__group input {
    padding: 0 12px 0 40px;
    font-size: 0.84rem;
  }

  .login-input-icon {
    left: 12px;
    width: 16px;
    height: 16px;
  }

  .login-input-icon svg {
    width: 16px;
    height: 16px;
  }

  .login-password-toggle {
    width: 34px;
    height: 34px;
    right: 4px;
    border-radius: 10px;
  }

  .login-password-wrap input {
    padding-right: 42px;
  }

  .btn-login {
    margin-top: 16px;
    font-size: 0.9rem;
  }

  .login-form-note {
    margin-top: 8px;
    font-size: 0.62rem;
  }

  .login-shell__brand {
    margin-top: auto;
    padding: 14px 12px 12px;
  }

  .login-shell__brand::after {
    inset: 8px;
    border-radius: 14px;
  }

  .login-brand__content {
    gap: 10px;
  }

  .login-brand__badge {
    min-height: 24px;
    padding: 0 10px;
    font-size: 0.58rem;
  }

  .login-brand__logo-wrap {
    min-height: 88px;
    padding: 12px 10px;
    border-radius: 14px;
  }

  .login-brand__logo-wrap::before {
    width: 96px;
    height: 96px;
  }

  .login-brand__logo {
    width: min(180px, 82%);
  }

  .login-brand__divider,
  .login-brand__caption {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-stage {
    padding: 6px;
  }

  .login-shell {
    min-height: calc(100dvh - 12px);
    border-radius: 16px;
  }

  .login-shell__form {
    padding: 14px 10px 8px;
  }

  .login-form {
    padding: 14px 12px;
    border-radius: 16px;
  }

  .login-form-header h2 {
    font-size: clamp(1.55rem, 9vw, 1.9rem);
  }

  .login-form-subtitle {
    font-size: 0.82rem;
  }

  .login-form__group input,
  .btn-login {
    min-height: 44px;
    border-radius: 10px;
  }

  .login-form__group input {
    padding: 0 10px 0 36px;
  }

  .login-input-icon {
    left: 10px;
    width: 15px;
    height: 15px;
  }

  .login-input-icon svg {
    width: 15px;
    height: 15px;
  }

  .login-password-toggle {
    width: 30px;
    height: 30px;
    right: 3px;
  }

  .login-password-wrap input {
    padding-right: 38px;
  }

  .login-shell__brand {
    padding: 12px 10px 10px;
  }

  .login-shell__brand::after {
    inset: 6px;
    border-radius: 12px;
  }

  .login-brand__badge {
    min-height: 22px;
    padding: 0 8px;
    font-size: 0.54rem;
  }

  .login-brand__content {
    gap: 8px;
  }

  .login-brand__logo-wrap {
    min-height: 74px;
    padding: 10px 8px;
    border-radius: 12px;
  }

  .login-brand__logo-wrap::before {
    width: 82px;
    height: 82px;
  }

  .login-brand__logo {
    width: min(156px, 80%);
  }
}
