/**
 * Fidasoft Private Shop — Front access page (premium login shell)
 * Copyright since 2026 FIDASOFT
 */

html,
body.fps-access {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--fps-font, "Segoe UI", system-ui, sans-serif);
  color: #0f172a;
  background: var(--fps-bg, #0f172a);
}

.fps-access {
  --fps-primary: #2563eb;
  --fps-secondary: #1e293b;
  --fps-bg: #0f172a;
  --fps-overlay: #000000;
  --fps-overlay-opacity: 0.45;
  --fps-radius: 12px;
  --fps-font: "Segoe UI", system-ui, sans-serif;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.fps-access__bg,
.fps-access__overlay,
.fps-access__video,
.fps-access__youtube {
  position: absolute;
  inset: 0;
}

.fps-access__bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.fps-access__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.fps-access__youtube {
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.fps-access__youtube iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  border: 0;
}

.fps-access__overlay {
  z-index: 1;
  background: var(--fps-overlay);
  opacity: var(--fps-overlay-opacity);
}

.fps-access__panel {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.fps-access__card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: calc(var(--fps-radius) + 8px);
  padding: 36px 32px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
}

.fps-access__card.is-glass {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Themes */
.fps-access--classic .fps-access__card {
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.fps-access--classic .fps-access__btn {
  border-radius: 4px;
}

.fps-access--modern .fps-access__card {
  border-radius: calc(var(--fps-radius) + 8px);
}

/* Animations */
.fps-anim--fade .fps-access__card {
  animation: fpsAccessFade 0.55s ease both;
}

.fps-anim--slide .fps-access__card {
  animation: fpsAccessSlide 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fps-anim--zoom .fps-access__card {
  animation: fpsAccessZoom 0.5s ease both;
}

@keyframes fpsAccessFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fpsAccessSlide {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fpsAccessZoom {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.fps-access__logo {
  max-height: 52px;
  max-width: 220px;
  margin-bottom: 22px;
  display: block;
}

.fps-access__brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 18px;
}

.fps-access__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #0f172a;
}

.fps-access__subtitle {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.45;
}

.fps-access__desc {
  margin-bottom: 20px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.fps-access__hint {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--fps-radius);
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.45;
}

.fps-access__alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.fps-access__alert {
  padding: 10px 12px;
  border-radius: var(--fps-radius);
  font-size: 13px;
  line-height: 1.4;
}

.fps-access__alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Tabs */
.fps-access__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: var(--fps-radius);
}

.fps-access__tab {
  border: 0;
  background: transparent;
  border-radius: calc(var(--fps-radius) - 2px);
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.fps-access__tab.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.fps-access__pane {
  display: none;
}

.fps-access__pane.is-active {
  display: block;
}

/* Fields */
.fps-access__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fps-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fps-field__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.fps-field__input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: var(--fps-radius);
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fps-field__input:focus {
  outline: none;
  border-color: var(--fps-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fps-primary) 22%, transparent);
}

.fps-field__password {
  position: relative;
}

.fps-field__password .fps-field__input {
  padding-right: 44px;
}

.fps-field__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fps-eye {
  width: 18px;
  height: 18px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  position: relative;
  display: block;
}

.fps-eye::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #94a3b8;
}

.fps-field__toggle.is-on .fps-eye {
  border-color: var(--fps-primary);
}

.fps-field__toggle.is-on .fps-eye::after {
  background: var(--fps-primary);
}

.fps-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.fps-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--fps-primary);
}

/* Buttons */
.fps-access__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: var(--fps-radius);
  background: var(--fps-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  border: 2px solid var(--fps-primary);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fps-access__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--fps-primary) 35%, transparent);
  color: #fff;
  text-decoration: none;
  filter: brightness(0.95);
}

.fps-access__btn--ghost {
  background: transparent;
  color: var(--fps-primary);
}

.fps-access__btn--ghost:hover {
  background: color-mix(in srgb, var(--fps-primary) 10%, white);
  color: var(--fps-primary);
  box-shadow: none;
}

.fps-btn--outline .fps-access__btn {
  background: transparent;
  color: var(--fps-primary);
}

.fps-btn--outline .fps-access__btn:hover {
  background: var(--fps-primary);
  color: #fff;
}

.fps-btn--soft .fps-access__btn {
  background: color-mix(in srgb, var(--fps-primary) 14%, white);
  color: var(--fps-primary);
  border-color: transparent;
  box-shadow: none;
}

.fps-access__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.fps-access__link {
  display: block;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
  margin-top: 4px;
}

.fps-access__link:hover {
  color: #0f172a;
}

.fps-access__link--muted {
  margin-top: 16px;
  font-size: 12px;
}

.fps-access__footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

.fps-preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #f59e0b;
  color: #111;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
}

.fps-access.is-preview .fps-access__panel {
  padding-top: 56px;
}

@media (max-width: 480px) {
  .fps-access__card {
    padding: 28px 20px;
  }

  .fps-field-row {
    grid-template-columns: 1fr;
  }

  .fps-access__title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fps-access__card {
    animation: none !important;
  }
}
