/* NORTIA TEAM – přihlášení a obnova hesla (design v2).
   Loaded only in the design preview from customer/authentication.tpl and the password templates.
   Tokens: nortia-shell.css. Mobile first, breakpoints 768 / 992. */

body#authentication #wrapper,
body#password #wrapper {
  background: linear-gradient(145deg, rgba(31, 99, 209, .035) 0 14%, transparent 14% 100%), var(--nt-surface);
}

body#authentication #main,
body#authentication #content,
body#password #main,
body#password #content {
  background: transparent;
}

body#authentication .page-header {
  display: none;
}

body#authentication .page-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ---------- card ---------- */

.nt-auth {
  display: flex;
  justify-content: center;
  padding: 24px 0 40px;
}

.nt-auth-card,
body#password #main {
  width: 100%;
  max-width: 560px;
  padding: 26px 18px 22px;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: var(--nt-surface);
}

.nt-auth-heading {
  margin-bottom: 24px;
}

.nt-auth-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--nt-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1;
}

.nt-auth-heading h1 {
  margin: 0;
  color: var(--nt-navy);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.04;
}

.nt-auth-heading h1 span {
  display: block;
  color: var(--nt-blue);
}

/* ---------- fields (PrestaShop form-fields.tpl markup) ---------- */

.nt-auth-form .form-group.row {
  display: block;
  margin: 0 0 16px;
}

.nt-auth-form .form-group.row > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.nt-auth-form .form-control-comment:empty {
  display: none;
}

.nt-auth-form .form-control-label,
body#password .form-control-label {
  display: block;
  width: 100%;
  margin: 0 0 7px;
  padding: 0;
  color: var(--nt-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.nt-auth-form .input-group {
  position: relative;
  display: block;
  width: 100%;
}

/* the theme squares the corners of a field followed by a button; keep the same rounding as the e-mail field */
.nt-auth-form .input-group .form-control {
  border-radius: 6px;
}

/* 16px text: iOS does not zoom into the field */
.nt-auth-form .form-control,
body#password .form-control {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 46px;
  border: 1px solid #cbd8e5;
  border-radius: 6px;
  background: var(--nt-surface) no-repeat 15px center / 20px;
  box-shadow: none;
  color: var(--nt-navy);
  font: 400 16px var(--nt-font);
  transition: border-color .15s, box-shadow .15s;
}

.nt-auth-form .form-control:focus,
body#password .form-control:focus {
  border-color: var(--nt-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(31, 99, 209, .1);
}

.nt-auth-form input[type="email"],
body#password input[type="email"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556f8e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.nt-auth-form .js-visible-password,
body#password input[type="password"] {
  padding-right: 52px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556f8e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

/* eye toggle: 44px tap target inside the field; the core JS swaps its text, which stays visually hidden */
.nt-auth-form .input-group-btn,
body#password .input-group-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  display: block;
  width: 44px;
}

.nt-auth-form button[data-action="show-password"],
body#password button[data-action="show-password"] {
  width: 44px;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345627f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.7'/%3E%3C/svg%3E") center / 21px no-repeat;
  box-shadow: none;
  color: transparent;
  font-size: 0;
}

.nt-auth-form button[data-action="show-password"][aria-pressed="true"],
body#password button[data-action="show-password"][aria-pressed="true"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f63d1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.7'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E");
}

.nt-auth-form button[data-action="show-password"]:focus-visible {
  outline: 2px solid var(--nt-blue);
  outline-offset: -2px;
}

.nt-auth-form .forgot-password {
  margin: -2px 0 18px;
  text-align: center;
}

.nt-auth-form .forgot-password a {
  display: inline-block;
  padding: 8px 4px;
  color: var(--nt-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nt-auth-form .form-footer {
  margin: 0;
}

.nt-auth-form #submit-login {
  position: relative;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 54px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--nt-blue-600) 0%, var(--nt-blue) 100%);
  box-shadow: none;
  color: #fff;
  font: 700 15px var(--nt-font);
  text-transform: none;
}

.nt-auth-form #submit-login::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 22px;
  font-size: 21px;
  font-weight: 400;
  transform: translateY(-52%);
}

.nt-auth-form #submit-login:hover {
  filter: brightness(.96);
}

/* ---------- "nebo" + register box ---------- */

.nt-auth-divider {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 20px 0 17px;
  color: #8b99a8;
  font-size: 12px;
}

.nt-auth-divider::before,
.nt-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dbe3eb;
}

.nt-auth-register {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px 12px;
  padding: 16px;
  border: 1px solid #dce9f5;
  border-radius: 7px;
  background: #f1f7fc;
}

.nt-auth-register-icon {
  display: flex;
  justify-content: center;
  color: var(--nt-blue);
}

.nt-auth-register-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--nt-navy);
  font-size: 14px;
  font-weight: 800;
}

.nt-auth-register-copy p {
  margin: 0;
  color: var(--nt-muted);
  font-size: 13px;
  line-height: 1.4;
}

.nt-auth-register-btn {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--nt-blue);
  border-radius: 6px;
  background: var(--nt-surface);
  color: var(--nt-blue-600);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}

.nt-auth-register-btn:hover {
  background: var(--nt-blue-600);
  color: #fff;
  text-decoration: none;
}

/* ---------- obnova hesla (theme password-email.tpl / password-new.tpl markup) ---------- */

body#password #main {
  margin: 24px auto 40px;
}

body#password .page-header h1 {
  margin: 0 0 12px;
  color: var(--nt-navy);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-align: left;
}

body#password .page-content {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body#password .send-renew-password-link,
body#password .page-content p {
  margin: 0 0 18px;
  color: var(--nt-muted);
  font-size: 14px;
  line-height: 1.5;
}

body#password .form-group {
  display: block;
  margin: 0 0 16px;
}

body#password .form-group > [class*="col-"],
body#password .form-group > [class*="offset-"] {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  padding: 0;
}

body#password .container-fluid {
  padding: 0;
}

body#password .renew-password .email {
  margin: 0 0 16px;
  color: var(--nt-ink);
  font-size: 14px;
  font-weight: 600;
}

body#password .form-control-submit {
  width: 100%;
  min-height: 50px;
  margin: 16px 0 0;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--nt-blue-600) 0%, var(--nt-blue) 100%);
  color: #fff;
  font: 700 15px var(--nt-font);
  text-transform: none;
}

body#password .page-footer {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #dbe3eb;
}

body#password #back-to-login,
body#password .account-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--nt-blue-600);
  font-size: 14px;
  font-weight: 700;
}

body#password .ps-alert-error:empty {
  display: none;
}

/* ---------- tablet and up ---------- */

@media (min-width: 768px) {
  body#authentication #wrapper,
  body#password #wrapper {
    background:
      linear-gradient(150deg, rgba(31, 99, 209, .035) 0 17%, transparent 17% 100%),
      linear-gradient(330deg, rgba(13, 32, 54, .025) 0 15%, transparent 15% 100%),
      var(--nt-surface);
  }

  .nt-auth {
    padding: 54px 0 64px;
  }

  .nt-auth-card,
  body#password #main {
    max-width: 660px;
    padding: 38px 42px 30px;
    border-radius: 10px;
  }

  body#password #main {
    max-width: 560px;
    margin-top: 48px;
  }

  .nt-auth-eyebrow {
    font-size: 12px;
    letter-spacing: .18em;
  }

  .nt-auth-heading h1 {
    font-size: 38px;
  }

  .nt-auth-form .form-control,
  body#password .form-control {
    height: 50px;
  }

  .nt-auth-form .forgot-password {
    margin-bottom: 20px;
  }

  .nt-auth-form #submit-login {
    min-height: 52px;
  }

  .nt-auth-register {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 17px 18px;
  }

  .nt-auth-register-btn {
    grid-column: auto;
    min-height: 44px;
  }
}
