/* =========================================================
   MASAJES ULTRA — AUTH V2 / PHASE 3F.1
   ========================================================= */

.muAuthV2 {
  width: min(calc(100% - (var(--mu-page-gutter) * 2)), 920px);
  margin: 0 auto;
  padding: 44px 0 64px;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(300px,.95fr);
  gap: 16px;
  align-items: stretch;
}

.muAuthV2--register {
  width: min(calc(100% - (var(--mu-page-gutter) * 2)), 980px);
  grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr);
}

.muAuthCard {
  padding: 30px;
}

.muAuthCard__intro h1 {
  margin: 8px 0 8px;
  color: var(--mu-ink);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em;
}

.muAuthCard__intro p {
  max-width: 560px;
  margin: 0;
  color: #687587;
  font-size: 11px;
  line-height: 1.5;
}

.muAuthAlert {
  margin-top: 15px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff0ef;
  color: #a6403d;
  font-size: 9px;
  font-weight: 750;
}

.muAuthAlert.is-success {
  background: #eaf7ef;
  color: #16784a;
}

.muAuthForm {
  margin-top: 20px;
  display: grid;
  gap: 11px;
}

.muAuthForm__grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}

.muAuthForm label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.muAuthForm label > span {
  color: var(--mu-ink);
  font-size: 9px;
  font-weight: 850;
}

.muAuthForm input {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #dce4e8;
  border-radius: 11px;
  background: #fff;
  color: var(--mu-ink);
  font: inherit;
  font-size: 10.5px;
  outline: none;
}

.muAuthForm input:focus {
  border-color: #8db6c9;
  box-shadow: 0 0 0 3px rgba(10,101,150,.07);
}

.muAuthForm input:disabled {
  background: #f4f5f4;
  color: #7f8993;
}

.muAuthForm label small,
.muAuthHint {
  color: #8a95a0;
  font-size: 7.5px;
  line-height: 1.35;
}

.muAuthForm > button {
  min-height: 42px;
  margin-top: 2px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: #0a6596;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.muAuthLinks {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--mu-border);
  display: grid;
  gap: 7px;
  color: #75818e;
  font-size: 8.5px;
}

.muAuthLinks p { margin: 0; }

.muAuthLinks a {
  width: max-content;
  max-width: 100%;
  color: #075c8a;
  text-decoration: none;
  font-weight: 850;
}

.muAuthSide {
  min-height: 100%;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(135deg,#10283e 0%,#064273 54%,#0b659d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 18px 42px rgba(5,47,84,.12);
}

.muAuthSide__icon {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 17px;
  background: #fff;
  display: grid;
  place-items: center;
}

.muAuthSide__icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.muAuthSide h2 {
  max-width: 400px;
  margin: 10px 0 10px;
  color: #fff;
  font-size: 29px;
  line-height: 1;
  letter-spacing: -.04em;
}

.muAuthSide > p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  line-height: 1.45;
}

.muAuthSide__points {
  margin-top: 23px;
  display: grid;
  gap: 8px;
}

.muAuthSide__points span {
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.07);
  color: #f0c46d;
  font-size: 7.5px;
  font-weight: 900;
}

.muAuthSide__points strong {
  margin-left: 8px;
  color: #fff;
  font-size: 9px;
}

.muAuthSide--light {
  border: 1px solid var(--mu-border);
  background: #fff;
  color: var(--mu-ink);
  box-shadow: var(--mu-shadow-soft);
}

.muAuthSide--light h2 {
  color: var(--mu-ink);
}

.muAuthSide--light > p {
  color: #75818e;
}

.muAuthSide--light > a {
  width: max-content;
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #edf4f7;
  color: #075c8a;
  text-decoration: none;
  font-size: 9px;
  font-weight: 850;
}

.muAuthSide__avatar {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 17px;
  background: linear-gradient(135deg,#0b5f8f,#0b7fb7);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}

.muAuthSide__shield {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 17px;
  background: rgba(255,255,255,.09);
  color: #f1c66f;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .muAuthV2,
  .muAuthV2--register {
    width: calc(100% - (var(--mu-mobile-gutter) * 2));
    padding: 14px 0 24px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .muAuthCard {
    padding: 17px 14px;
    border-radius: 18px;
    box-shadow: none;
  }

  .muAuthCard__intro h1 {
    margin: 6px 0;
    font-size: 26px;
  }

  .muAuthCard__intro p {
    font-size: 9.5px;
    line-height: 1.42;
  }

  .muAuthForm {
    margin-top: 14px;
    gap: 9px;
  }

  .muAuthForm__grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .muAuthForm input {
    min-height: 40px;
    border-radius: 10px;
    font-size: 10px;
  }

  .muAuthForm > button {
    min-height: 38px;
    font-size: 9px;
  }

  .muAuthLinks {
    margin-top: 13px;
    padding-top: 12px;
  }

  .muAuthSide {
    min-height: 0;
    padding: 18px 15px;
    border-radius: 18px;
    box-shadow: none;
  }

  .muAuthSide__icon,
  .muAuthSide__avatar,
  .muAuthSide__shield {
    width: 44px;
    height: 44px;
    margin-bottom: 13px;
    border-radius: 13px;
  }

  .muAuthSide__icon img {
    width: 32px;
    height: 32px;
  }

  .muAuthSide h2 {
    margin: 7px 0;
    font-size: 21px;
  }

  .muAuthSide__points {
    margin-top: 13px;
    gap: 6px;
  }

  .muAuthSide__points span {
    padding: 8px 9px;
  }

  .muAuthV2--account .muAuthSide {
    order: -1;
  }
}

/* Phase 3F.1.1 — simplified login/register */

.muAuthV2--single {
  width: min(calc(100% - (var(--mu-page-gutter) * 2)), 620px);
  grid-template-columns: 1fr;
  padding-top: 54px;
}

.muAuthV2--single.muAuthV2--register {
  width: min(calc(100% - (var(--mu-page-gutter) * 2)), 720px);
}

.muAuthV2--single .muAuthCard {
  padding: 36px;
}

.muAuthV2--single .muAuthCard__intro h1 {
  font-size: 38px;
}

.muAuthV2--single .muAuthCard__intro p {
  font-size: 12.5px;
}

.muAuthV2--single .muAuthForm label > span {
  font-size: 10px;
}

.muAuthV2--single .muAuthForm input {
  min-height: 47px;
  font-size: 11.5px;
}

.muAuthV2--single .muAuthForm > button {
  min-height: 45px;
  font-size: 11px;
}

.muAuthV2--single .muAuthLinks {
  font-size: 9.5px;
}

.muAuthV2--single .muAuthHint,
.muAuthV2--single .muAuthForm label small {
  font-size: 8px;
}

@media (max-width: 900px) {
  .muAuthV2--single,
  .muAuthV2--single.muAuthV2--register {
    width: calc(100% - (var(--mu-mobile-gutter) * 2));
    padding-top: 18px;
  }

  .muAuthV2--single .muAuthCard {
    padding: 20px 16px;
  }

  .muAuthV2--single .muAuthCard__intro h1 {
    font-size: 29px;
  }

  .muAuthV2--single .muAuthCard__intro p {
    font-size: 10.5px;
  }

  .muAuthV2--single .muAuthForm label > span {
    font-size: 9px;
  }

  .muAuthV2--single .muAuthForm input {
    min-height: 43px;
    font-size: 10.5px;
  }

  .muAuthV2--single .muAuthForm > button {
    min-height: 41px;
    font-size: 9.5px;
  }

  .muAuthV2--single .muAuthLinks {
    font-size: 9px;
  }
}

/* =========================================================
   PHASE 3G.1 — auth secondary states
   ========================================================= */

.muAuthV2--status {
  width: min(calc(100% - (var(--mu-page-gutter) * 2)), 620px);
}

.muAuthStatusIcon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #edf4f7;
  color: #075c8a;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 900;
}

.muAuthStatusIcon.is-warning {
  background: #fbf3e4;
  color: #a06b25;
}

.muAuthStatusIcon.is-success {
  background: #e9f7ef;
  color: #16784a;
}

.muAuthStatusNote {
  margin-top: 17px;
  padding: 12px;
  border: 1px solid #e3e8eb;
  border-radius: 11px;
  background: #fbfaf7;
  display: grid;
  gap: 4px;
}

.muAuthStatusNote strong {
  color: var(--mu-ink);
  font-size: 10px;
}

.muAuthStatusNote span {
  color: #778390;
  font-size: 8.5px;
  line-height: 1.4;
}

.muAuthStatusActions {
  margin-top: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.muAuthStatusActions a {
  min-height: 37px;
  padding: 0 12px;
  border-radius: 10px;
  background: #edf4f7;
  color: #075c8a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 850;
}

.muAuthStatusActions a.is-primary {
  background: #0a6596;
  color: #fff;
}

@media (max-width: 900px) {
  .muAuthV2--status {
    width: calc(100% - (var(--mu-mobile-gutter) * 2));
  }

  .muAuthStatusIcon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .muAuthStatusActions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .muAuthStatusActions a {
    width: 100%;
  }
}
