/* Auth page final polish — intentionally isolated from landing and dashboard UI. */
.auth-page {
  min-width: 0;
  overflow-x: hidden;
  color: #0f172a;
  background: var(--ink) ;
}


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

.auth-page .auth-art,
.auth-page .register-art {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.auth-page .auth-panel {
  border-radius: 50px 0px 0px 50px ;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 54px clamp(36px, 6vw, 92px);
  background: var(--my-gradient);
}
.auth-page .auth-panel::after {
  background: var(--ink);
}

.auth-page .auth-form-wrap,
.auth-page .register-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 auto;
}

.auth-page .auth-form-wrap h1 {
  margin: 10px 0 8px;
  /* color: #0f172a; */
  color: #fff;
  font:
    800 clamp(31px, 3vw, 40px)/1.12 Manrope,
    sans-serif;
  letter-spacing: -1.7px;
}

.auth-page .auth-form-wrap > .eyebrow {
  color: #5b4bff;
  font-size: 10px;
}

.auth-page .auth-intro {
  margin: 0 0 30px;
  color: var(--label-grey);
  /* color: #6b7280; */
  font-size: 15px;
  line-height: 1.55;
}

.auth-page .auth-form {
  gap: 14px;
}

.auth-page .auth-form label {
  gap: 7px;
  color: var(--label-grey);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.auth-page .auth-form input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 17px;
  color: #0f172a;
  background: #eef1f5;
  box-shadow: none;
}

.auth-page .auth-form input::placeholder {
  color: var(--label-grey);
}

.auth-page .auth-form input:focus {
  border-color: #8c82ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91, 75, 255, 0.1);
}

.auth-page .password-toggle {
  top: 7px;
  right: 9px;
  display: grid;
  place-items: center;
  color: var(--muted);
  line-height: 1;
}

.auth-page .label-row {
  align-items: center;
  min-height: 0;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.auth-page .check-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500 !important;
  letter-spacing: 0;
  text-transform: none;
}

.auth-page .check-label input {
  flex: 0 0 auto;
}

.auth-page .auth-submit {
  width: 100%;
  height: 52px;
  padding: 0 22px;
  border-radius: 17px;
  color: #fff;
  background: #5b4bff;
  box-shadow: 0 9px 22px rgba(91, 75, 255, 0.18);
  font-size: 14px;
}

.auth-page .auth-submit:hover {
  background: #4c3ce5;
}

.auth-page .social-button {
  width: 100%;
  height: 48px;
  border: 1px solid #dde2e8;
  border-radius: 16px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  font-weight: 600;
}

.auth-page .social-button:hover {
  border-color: #ccd2db;
  background: #fff;
}

.auth-page .google-button b {
  color: #4285f4;
  font-size: 15px;
}

.auth-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.auth-methods .social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.auth-methods .social-button span {
  width: 16px;
  color: #4b5563;
  text-align: center;
  line-height: 1;
}

.auth-page .form-divider {
  gap: 14px;
  color: #7a808b;
  font-size: 10px;
}

.auth-page .form-divider:before,
.auth-page .form-divider:after {
  background: #dfe3e8;
}

.auth-page .auth-switch {
  margin: 8px 0 0;
  /* color: #707784; */
  color: var(--label-grey);
  font-size: 12px;
}

.auth-page .forgot-link {
  align-self: flex-end;
  margin-top: -4px;
  color: var(--purple-soft);
  font-size: 11px;
  font-weight: 700;
}

.auth-page .auth-switch a,
.auth-page .label-row a,
.auth-page .check-label a {
  color: var(--purple-soft);
  font-weight: 700;
}

.auth-page .auth-brand {
  position: absolute;
  z-index: 3;
  top: clamp(30px, 5vw, 64px);
  left: clamp(30px, 5vw, 64px);
  color: #fff;
  font:
    800 19px Manrope,
    sans-serif;
  letter-spacing: 0.4px;
}

.auth-logo-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  font-size: 25px;
}

.auth-marketing {
  position: absolute;
  z-index: 2;
  left: clamp(30px, 6vw, 74px);
  bottom: 23%;
  width: min(75%, 520px);
  color: #000;
  /* color: #fff; */
}

.auth-marketing h2 {
  margin: 0;
  font:
    800 clamp(35px, 4.2vw, 57px)/1.14 Manrope,
    sans-serif;
  letter-spacing: -2.5px;
}

.auth-marketing p {
  max-width: 470px;
  margin: 23px 0 0;
  /* color: rgba(255, 255, 255, 0.78); */
  /* color: #000000; */
  color: rgba(0, 0, 0, 0.8);
  font-size: clamp(14px, 1.6vw, 19px);
  line-height: 1.55;
}

.auth-copyright {
  position: absolute;
  z-index: 2;
  left: clamp(30px, 6vw, 74px);
  bottom: 34px;
  color: rgba(0, 0, 0, 0.8);
  /* color: rgba(255, 255, 255, 0.58); */
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.auth-page .auth-shape {
  opacity: 0.22;
}

.auth-page .role-picker {
  gap: 7px;
}

.auth-page .role-picker legend {
  color: #525866;
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.auth-page .role-picker label {
  height: 62px;
  gap: 3px;
  border-color: #dde2e8;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.48);
  letter-spacing: 0;
  text-transform: none;
}

.auth-page .role-picker label.selected {
  border-color: #7d70ff;
  color: #5b4bff;
  background: #efedff;
  box-shadow: none;
}

@media (max-width: 800px) {
  .auth-page .auth-layout,
  .auth-page .auth-layout.reverse {
    display: block;
    min-height: 100vh;
  }

  .auth-page .auth-art,
  .auth-page .register-art {
    display: none;
  }

  .auth-page .auth-panel {
    display: grid;
    min-height: 100vh;
    padding: 48px 24px;
    border-radius: 0;
  }

  .auth-page .auth-form-wrap,
  .auth-page .register-wrap {
    width: min(100%, 460px);
  }
}

@media (max-width: 480px) {
  .auth-page .auth-panel {
    align-items: start;
    padding: 38px 18px;
  }

  .auth-page .auth-form-wrap h1 {
    font-size: 30px;
  }

  .auth-page .auth-intro {
    font-size: 14px;
  }

  .auth-page .form-row {
    grid-template-columns: 1fr;
  }

  .auth-page .role-picker {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Authentication (non-scoped) */
.auth-page {
  min-height: 100vh;
  background: var(--ink);
}

.auth-brand {
  position: fixed;
  z-index: 5;
  left: 42px;
  top: 28px;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  background-color: var(--surface);
  background-image: 
    radial-gradient(
      circle at 43% 4%,
      rgba(255, 183, 184, 0.35),
      transparent 27%
    ),
    radial-gradient(
      circle at 1% 100%,
      rgba(90, 44, 220, 0.3),
      transparent 38%
    );
}

.auth-layout.reverse {
  grid-template-columns: 1.08fr 0.92fr;
  background-color: var(--surface);
  background-image: 
    radial-gradient(
      circle at 43% 4%,
      rgba(255, 183, 184, 0.35),
      transparent 27%
    ),
    radial-gradient(
      circle at 1% 100%,
      rgba(90, 44, 220, 0.3),
      transparent 38%
    );
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 100px 40px 50px;
}

.auth-form-wrap {
  width: min(100%, 440px);
}

.register-wrap {
  width: min(100%, 500px);
}

.auth-form-wrap h1 {
  margin: 12px 0 10px;
  font: 800 40px/1.1 Manrope;
  letter-spacing: -1.5px;
}

.auth-intro {
  margin-bottom: 30px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #dddce5;
  border-radius: 12px;
  outline: 0;
  background: #fff;
}

.auth-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

.label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.label-row a,
.auth-switch a,
.check-label a {
  color: var(--purple);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 50px !important;
}

/* Keep Novixa's right-side toggle and hide Edge's duplicate native eye. */
.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 7px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: #9493a1;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--purple);
  background: rgba(91, 75, 255, 0.08);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-slash {
  display: none;
}

.password-toggle.is-visible .password-eye-slash {
  display: block;
}

.check-label {
  flex-direction: row !important;
  align-items: center;
  font-weight: 500 !important;
  color: #686777;
}

.check-label input {
  width: 17px;
  height: 17px;
  accent-color: var(--purple);
}

.auth-submit {
  width: 100%;
  height: 51px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9a99a6;
  font-size: 11px;
}

.form-divider:before,
.form-divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.social-button {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.social-button:hover {
  background: #fafafe;
}

.social-button b {
  margin-right: 10px;
  color: #4285f4;
}

.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.auth-art {
  position: relative;
  display: grid;
  place-items: center;
  margin: 18px;
  border-radius: 27px;
  overflow: hidden;
  background: linear-gradient(145deg, #6d52e4, #9a88ef);
}

.auth-shape {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shape-one {
  width: 520px;
  height: 520px;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.04);
}

.shape-two {
  width: 200px;
  height: 200px;
  right: -50px;
  bottom: -20px;
  background: rgba(78, 200, 212, 0.35);
}

.auth-quote {
  position: relative;
  z-index: 1;
  width: min(75%, 480px);
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 23px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.quote-mark {
  font: 800 65px/1 serif;
  color: #cfc6ff;
}

.auth-quote blockquote {
  margin: 0 0 30px;
  font: 700 25px/1.5 Manrope;
}

.auth-quote > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portrait {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffd8c7;
  color: #9c5e48;
  font-weight: 700;
}

.auth-quote p {
  margin: 0;
}

.auth-quote strong,
.auth-quote small {
  display: block;
}

.auth-quote small {
  margin-top: 5px;
  color: #e3defb;
}

.auth-mini-card {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 12%;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-mini-card > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #def5e9;
  color: #279665;
}

.auth-mini-card strong,
.auth-mini-card small {
  display: block;
  font-size: 11px;
}

.auth-mini-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.role-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.role-picker legend {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.role-picker label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  color: #787786;
}

.role-picker label.selected {
  border-color: var(--purple);
  background: var(--purple-soft);
  color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple);
}

.role-picker input {
  position: absolute;
  opacity: 0;
}

.role-picker span {
  font-size: 18px;
}

.role-picker b {
  font-size: 11px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.register-art {
  background: transparent;
}

.register-message {
  position: relative;
  z-index: 1;
  color: #fff;
  width: 72%;
}

.register-message .eyebrow {
  color: #cec6ff;
}

.register-message h2 {
  font: 800 44px/1.15 Manrope;
  letter-spacing: -2px;
}

.register-message ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  list-style: none;
}

.register-message li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #e8e5fb;
}

.register-message li span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.progress-mini {
  right: auto;
  left: 8%;
  bottom: 7%;
}

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

  .auth-art {
    margin-left: 0;
  }

  .register-message {
    width: 80%;
  }
}

@media (max-width: 800px) {
  .auth-layout,
  .auth-layout.reverse {
    display: block;
  }

  .auth-art {
    display: none;
  }

  .auth-brand {
    position: absolute;
    left: 24px;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 105px 24px 45px;
  }
}

@media (max-width: 550px) {
  .role-picker {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-page .auth-form select,
.auth-page .auth-form textarea {
  width: 100%;
  border: 1px solid #dfe3ea;
  border-radius: 14px;
  color: #0f172a;
  background: #fff;
  font: inherit;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.auth-page .auth-form select {
  min-height: 48px;
  padding: 0 14px;
}

.auth-page .auth-form textarea {
  min-height: 104px;
  padding: 13px 14px;
  resize: vertical;
}

.auth-page .auth-form select:focus,
.auth-page .auth-form textarea:focus {
  border-color: #5749ed;
  box-shadow: 0 0 0 3px rgba(87, 73, 237, 0.12);
}

.auth-page .auth-form select:disabled {
  cursor: not-allowed;
  color: #8a93a1;
  background: #f4f5f7;
}

.register-role-fields {
  display: grid;
  gap: 16px;
}

.register-role-fields[hidden] {
  display: none;
}

.auth-registration-status {
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-registration-status[hidden] {
  display: none;
}

.auth-registration-status.is-success {
  color: #16733d;
  border-color: #b9e6ca;
  background: #ecf9f1;
}

.auth-registration-status.is-error {
  color: #b4232c;
  border-color: #f2bdc1;
  background: #fff0f1;
}

.auth-registration-status.is-info {
  color: #2f3f9d;
  border-color: #c9c8f7;
  background: #f0efff;
}

.auth-login-status {
  padding: 13px 15px;
  border: 1px solid #f2bdc1;
  border-radius: 14px;
  color: #a51d27;
  background: #fff0f1;
  font-size: 13px;
  line-height: 1.5;
}

.auth-login-status[hidden] {
  display: none;
}

.auth-login-status.is-info {
  color: #2f3f9d;
  border-color: #c9c8f7;
  background: #f0efff;
}

.auth-page .auth-form input[aria-invalid="true"] {
  border-color: #e0525e !important;
  background: #fffafa !important;
  box-shadow: 0 0 0 3px rgba(224, 82, 94, 0.12) !important;
}

.auth-consent {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  align-items: start !important;
  gap: 10px !important;
  color: #5f6877;
  font-size: 12px !important;
  line-height: 1.5;
}

.auth-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #5749ed;
}

.auth-page .register-wrap {
  padding-top: 40px;
  padding-bottom: 40px;
}
