/*
 * Nortfly customer account and registration
 * WooCommerce keeps authentication; this file owns only presentation.
 */

.nf-storefront-v2 .nf-account-view {
  min-height: 620px;
  background:
    radial-gradient(circle at 90% 8%, rgba(0, 191, 166, 0.1), transparent 25rem),
    linear-gradient(180deg, #f5f9fc, #fff 52%);
}

.nf-storefront-v2 .nf-account-view__hero {
  border-bottom: 1px solid var(--nf-border);
  background: rgba(255, 255, 255, 0.5);
}

.nf-storefront-v2 .nf-account-view__hero .nf-shell {
  padding-top: 44px;
  padding-bottom: 38px;
  text-align: center;
}

.nf-storefront-v2 .nf-account-view__hero span {
  color: var(--nf-primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nf-storefront-v2 .nf-account-view__hero h1 {
  margin: 8px 0 9px;
  color: var(--nf-primary-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(36px, 4.4vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.nf-storefront-v2 .nf-account-view__hero p {
  margin: 0;
  color: var(--nf-muted);
  font-size: 12px;
}

.nf-storefront-v2 .nf-account-view__content {
  padding-top: 46px;
  padding-bottom: 70px;
}

.nf-storefront-v2 .nf-account-view__content > .woocommerce {
  padding: 0;
}

.nf-storefront-v2 .nf-account-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 28px;
  width: min(100%, 980px);
  margin: 0 auto;
}

.nf-storefront-v2 .nf-account-card {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--nf-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(8, 47, 82, 0.09);
}

.nf-storefront-v2 .nf-account-card__eyebrow,
.nf-registration-page .nf-registration-hero__eyebrow {
  display: inline-flex;
  margin-bottom: 11px;
  color: var(--nf-primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nf-storefront-v2 .nf-account-card h2 {
  margin: 0;
  color: var(--nf-primary-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-transform: none;
}

.nf-storefront-v2 .nf-account-card__intro,
.nf-storefront-v2 .nf-account-signup > p,
.nf-storefront-v2 .nf-account-register__header > p {
  margin: 14px 0 26px;
  color: var(--nf-muted);
  font-size: 13px;
  line-height: 1.65;
}

.nf-storefront-v2 .nf-account-login .woocommerce-form-login {
  margin: 0;
  padding: 0;
  border: 0;
}

.nf-storefront-v2 .nf-account-login .form-row {
  margin-bottom: 16px;
}

.nf-storefront-v2 .nf-account-login label,
.nf-registration-page .nf-registration-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--nf-ink);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.nf-storefront-v2 .nf-account-login input[type="text"],
.nf-storefront-v2 .nf-account-login input[type="password"],
.nf-registration-page .nf-registration-form input[type="text"],
.nf-registration-page .nf-registration-form input[type="email"],
.nf-registration-page .nf-registration-form input[type="tel"],
.nf-registration-page .nf-registration-form input[type="password"],
.nf-registration-page .nf-registration-form select {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #cfdae4;
  border-radius: 12px;
  color: var(--nf-ink);
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.nf-storefront-v2 .nf-account-login input:focus,
.nf-registration-page .nf-registration-form input:focus,
.nf-registration-page .nf-registration-form select:focus {
  border-color: var(--nf-primary);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 83, 144, 0.1);
}

.nf-storefront-v2 .nf-account-login__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 20px;
  color: var(--nf-muted);
  font-size: 11px;
}

.nf-storefront-v2 .nf-account-login__options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--nf-muted);
  font-weight: 600;
}

.nf-storefront-v2 .nf-account-login__options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--nf-primary);
}

.nf-storefront-v2 .nf-account-login__options a {
  color: var(--nf-primary);
  font-weight: 700;
}

.nf-storefront-v2 .nf-account-login .woocommerce-form-login__submit,
.nf-storefront-v2 .nf-account-signup__button,
.nf-registration-page .nf-registration-submit .button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--nf-primary), #0a669d);
  box-shadow: 0 13px 28px rgba(13, 83, 144, 0.22);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.015em;
  text-transform: none;
}

.nf-storefront-v2 .nf-account-login .woocommerce-form-login__submit:hover,
.nf-storefront-v2 .nf-account-signup__button:hover,
.nf-registration-page .nf-registration-submit .button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--nf-primary-dark), var(--nf-primary));
  transform: translateY(-1px);
}

.nf-storefront-v2 .nf-account-signup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 92% 10%, rgba(0, 191, 166, 0.28), transparent 42%),
    linear-gradient(145deg, var(--nf-primary-dark), #0b4f76);
}

.nf-storefront-v2 .nf-account-signup::after {
  position: absolute;
  right: -70px;
  bottom: -95px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.nf-storefront-v2 .nf-account-signup .nf-account-card__eyebrow {
  color: #8ee9dc;
}

.nf-storefront-v2 .nf-account-signup h2,
.nf-storefront-v2 .nf-account-signup > p {
  color: #fff;
}

.nf-storefront-v2 .nf-account-signup > p {
  color: rgba(255, 255, 255, 0.72);
}

.nf-storefront-v2 .nf-account-card__icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nf-storefront-v2 .nf-account-card__icon svg {
  width: 24px;
  height: 24px;
}

.nf-storefront-v2 .nf-account-signup ul {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.nf-storefront-v2 .nf-account-signup li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.45;
}

.nf-storefront-v2 .nf-account-signup li svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #8ee9dc;
}

.nf-storefront-v2 .nf-account-signup__button {
  position: relative;
  z-index: 1;
  width: auto;
  align-self: flex-start;
  padding: 0 24px;
  color: var(--nf-primary-dark);
  background: #fff;
  box-shadow: none;
}

.nf-storefront-v2 .nf-account-signup__button:hover {
  color: var(--nf-primary-dark);
  background: #ecfffb;
}

/* Dedicated registration page */
.nf-registration-page .nf-registration-view {
  background:
    radial-gradient(circle at 8% 12%, rgba(13, 83, 144, 0.08), transparent 29rem),
    linear-gradient(180deg, #f6fafc 0, #fff 42%);
}

.nf-registration-page .nf-registration-hero {
  border-bottom: 1px solid var(--nf-border);
  background:
    radial-gradient(circle at 90% 20%, rgba(0, 191, 166, 0.17), transparent 30rem),
    linear-gradient(135deg, #edf6fb, #f9fcfd);
}

.nf-registration-page .nf-registration-hero__inner {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 52px;
  padding-bottom: 52px;
}

.nf-registration-page .nf-registration-hero__inner > div:first-child {
  max-width: 650px;
}

.nf-registration-page .nf-registration-hero h1 {
  margin: 0;
  color: var(--nf-primary-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.nf-registration-page .nf-registration-hero p {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--nf-muted);
  font-size: 14px;
  line-height: 1.7;
}

.nf-registration-page .nf-registration-hero__trust {
  display: grid;
  min-width: 250px;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(13, 83, 144, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 36px rgba(8, 47, 82, 0.06);
  backdrop-filter: blur(8px);
}

.nf-registration-page .nf-registration-hero__trust span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--nf-ink);
  font-size: 11px;
  font-weight: 700;
}

.nf-registration-page .nf-registration-hero__trust svg {
  width: 19px;
  height: 19px;
  color: var(--nf-primary);
}

.nf-registration-page .nf-registration-content {
  padding-top: 54px;
  padding-bottom: 68px;
}

.nf-registration-page .nf-registration-content > .woocommerce {
  padding: 0;
}

.nf-registration-page .nf-account-auth--registration {
  display: block;
  width: min(100%, 900px);
}

.nf-registration-page .nf-account-register {
  padding: 0;
}

.nf-registration-page .nf-account-register__header {
  padding: 38px 42px 30px;
  border-bottom: 1px solid var(--nf-border);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 191, 166, 0.1), transparent 19rem),
    #fff;
}

.nf-registration-page .nf-account-register__header > p {
  margin-bottom: 0;
}

.nf-registration-page .nf-registration-form {
  margin: 0;
  padding: 0 42px 42px;
  border: 0;
}

.nf-registration-page .nf-registration-section {
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--nf-border);
}

.nf-registration-page .nf-registration-section__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.nf-registration-page .nf-registration-section__header > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--nf-primary), #0a6c9f);
  box-shadow: 0 8px 18px rgba(13, 83, 144, 0.17);
}

.nf-registration-page .nf-registration-section__header svg {
  width: 21px;
  height: 21px;
}

.nf-registration-page .nf-registration-section__header h3 {
  margin: 1px 0 4px;
  color: var(--nf-primary-dark);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nf-registration-page .nf-registration-section__header p {
  margin: 0;
  color: var(--nf-muted);
  font-size: 11px;
  line-height: 1.55;
}

.nf-registration-page .nf-registration-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.nf-registration-page .nf-registration-fields .form-row {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.nf-registration-page .nf-registration-fields .nf-field--full,
.nf-registration-page .nf-registration-note {
  grid-column: 1 / -1;
}

.nf-registration-page .nf-registration-form .required {
  color: #a13a59;
}

.nf-registration-page .nf-registration-form .optional {
  color: var(--nf-muted);
  font-size: 10px;
  font-weight: 500;
}

.nf-registration-page .nf-registration-form small {
  display: block;
  margin-top: 6px;
  color: var(--nf-muted);
  font-size: 9px;
}

.nf-registration-page .nf-registration-form select {
  padding-right: 40px;
  background-color: #fff;
}

.nf-registration-page .nf-password-field {
  position: relative;
  display: block;
}

.nf-registration-page .nf-password-field input {
  padding-right: 76px;
}

.nf-registration-page .nf-password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  min-height: 32px;
  margin: 0;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  color: var(--nf-primary);
  background: #edf5fa;
  box-shadow: none;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  transform: translateY(-50%);
}

.nf-registration-page .nf-registration-lookup-status {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  color: var(--nf-muted);
  font-size: 9px;
  line-height: 1.45;
}

.nf-registration-page .nf-registration-lookup-status.is-loading {
  color: var(--nf-primary);
}

.nf-registration-page .nf-registration-lookup-status.is-success {
  color: #257047;
}

.nf-registration-page .nf-registration-lookup-status.is-error {
  color: #a33131;
}

.nf-registration-page .nf-registration-lookup-status.is-loading::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: nf-registration-spin 0.7s linear infinite;
}

@keyframes nf-registration-spin {
  to {
    transform: rotate(360deg);
  }
}

.nf-registration-page .nf-registration-privacy {
  padding: 25px 0 3px;
}

.nf-registration-page .nf-registration-privacy,
.nf-registration-page .nf-registration-privacy p {
  color: var(--nf-muted);
  font-size: 10px;
  line-height: 1.65;
}

.nf-registration-page .nf-registration-privacy a {
  color: var(--nf-primary);
  font-weight: 700;
}

.nf-registration-page .nf-registration-submit {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 18px;
}

.nf-registration-page .nf-registration-submit .button {
  width: auto;
  min-width: 230px;
  padding: 0 28px;
}

.nf-registration-page .nf-registration-submit p {
  margin: 0;
  color: var(--nf-muted);
  font-size: 11px;
}

.nf-registration-page .nf-registration-submit a {
  color: var(--nf-primary);
  font-weight: 750;
}

.nf-registration-page .woocommerce-notices-wrapper,
.nf-registration-page .woocommerce-error,
.nf-registration-page .woocommerce-message {
  width: min(100%, 900px);
  margin-right: auto;
  margin-left: auto;
}

.nf-registration-page .woocommerce-error {
  margin-bottom: 22px;
  padding: 17px 20px 17px 43px;
  border: 1px solid #f0c8c8;
  border-radius: 14px;
  color: #852c2c;
  background: #fff6f6;
  font-size: 11px;
}

.nf-registration-page .nf-registration-operator {
  border-top: 1px solid var(--nf-border);
  background: var(--nf-surface);
}

.nf-registration-page .nf-registration-operator .nf-shell {
  display: flex;
  min-height: 100px;
  align-items: center;
  gap: 15px;
}

.nf-registration-page .nf-registration-operator svg {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  color: var(--nf-primary);
}

.nf-registration-page .nf-registration-operator p {
  margin: 0;
  color: var(--nf-muted);
  font-size: 11px;
  line-height: 1.6;
}

.nf-registration-page .nf-registration-operator strong {
  color: var(--nf-primary-dark);
}

@media (max-width: 849px) {
  .nf-storefront-v2 .nf-account-auth {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .nf-storefront-v2 .nf-account-card {
    padding: 30px;
    border-radius: 20px;
  }

  .nf-storefront-v2 .nf-account-signup__button {
    width: 100%;
  }

  .nf-registration-page .nf-registration-hero__inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 27px;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .nf-registration-page .nf-registration-hero__trust {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nf-registration-page .nf-registration-hero__trust span {
    align-items: flex-start;
    flex-direction: column;
  }

  .nf-registration-page .nf-registration-content {
    padding-top: 34px;
    padding-bottom: 48px;
  }

  .nf-registration-page .nf-account-register,
  .nf-registration-page .nf-account-register__header {
    border-radius: 19px;
  }

  .nf-registration-page .nf-account-register__header,
  .nf-registration-page .nf-registration-form {
    padding-right: 27px;
    padding-left: 27px;
  }
}

@media (max-width: 549px) {
  .nf-storefront-v2 .nf-account-view__hero .nf-shell {
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .nf-storefront-v2 .nf-account-view__content {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .nf-storefront-v2.woocommerce-account .woocommerce {
    padding-top: 25px;
    padding-bottom: 48px;
  }

  .nf-storefront-v2 .nf-account-card {
    padding: 24px 20px;
    border-radius: 17px;
  }

  .nf-storefront-v2 .nf-account-card h2 {
    font-size: 31px;
  }

  .nf-storefront-v2 .nf-account-login__options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nf-registration-page .nf-registration-hero h1 {
    font-size: 39px;
  }

  .nf-registration-page .nf-registration-hero p {
    font-size: 12px;
  }

  .nf-registration-page .nf-registration-hero__trust {
    grid-template-columns: 1fr;
  }

  .nf-registration-page .nf-registration-hero__trust span {
    align-items: center;
    flex-direction: row;
  }

  .nf-registration-page .nf-registration-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .nf-registration-page .nf-account-register {
    border-radius: 16px;
  }

  .nf-registration-page .nf-account-register__header {
    padding: 28px 20px 24px;
  }

  .nf-registration-page .nf-registration-form {
    padding: 0 20px 30px;
  }

  .nf-registration-page .nf-registration-section {
    padding: 28px 0 31px;
  }

  .nf-registration-page .nf-registration-section__header {
    gap: 11px;
  }

  .nf-registration-page .nf-registration-section__header > span {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .nf-registration-page .nf-registration-fields {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .nf-registration-page .nf-registration-fields .nf-field--full,
  .nf-registration-page .nf-registration-note {
    grid-column: auto;
  }

  .nf-registration-page .nf-registration-submit {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }

  .nf-registration-page .nf-registration-submit .button {
    width: 100%;
    min-width: 0;
  }
}
