/* ============================
   Password Modal Styles
   ============================ */

.password-modal {
  display: none;              /* toggled via .open class */
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.5); /* scrim */
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* open state */
.password-modal.open {
  display: flex;
}

/* Panel */
.password-modal-inner {
  width: 100%;
  max-width: 520px;
  background: #333332;                /* modal background */
  color: #ffffff;
  border-radius: 12px;
  padding: 48px 28px 28px;            /* ⬅ increased top padding */
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Close button (top-right) */
.password-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  
}
.password-modal-close:focus {
  outline: 3px solid rgba(255,255,255,0.12);
  border-radius: 6px;
}

/* Title */
.password-modal .modal-title {
  padding-top: 10px;
  font-size: 2.5rem;
  line-height: 1.02;
  font-weight: 550;
  margin: 0 0 18px 0;
  color: #ffffff;
  text-align: center;
}

/* Input */
.password-modal input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background: #ffffff;        /* white input for contrast */
  color: #121212;
  font-size: 1.1rem;
  box-sizing: border-box;
}

/* Input focus */
.password-modal input[type="password"]:focus {
  box-shadow: 0 0 0 4px rgba(255,75,59,0.08);
  border-color: rgba(255,75,59,0.9);
  outline: none;
}

/* Submit button — reversed (white background, dark text) */
.password-modal .btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  background: #ffffff;
  color: #121212;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

/* Hover/focus for Submit button */
.password-modal .btn.btn-primary:hover,
.password-modal .btn.btn-primary:focus {
  background: #e6e6e6;   /* light grey hover */
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  outline: none;
}

/* Request Password link — centered, white */
.password-modal .btn-text {
  display: block;
  margin: 16px auto 0;        /* centered with space above */
  font-size: 14px;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
}

/* Hover/focus for Request Password */
.password-modal .btn-text:hover,
.password-modal .btn-text:focus {
  color: #e6e6e6;
  text-decoration: none;
  box-shadow: none;
}

/* Error text — left aligned, reserved space */
.password-modal .error {
  color: #FF4B3B;           /* accessible red */
  margin: 8px 0 0 0;        /* 8px gap from input */
  font-size: 14px;
  min-height: 20px;         /* reserves space to prevent layout shift */
  text-align: left;
  width: 100%;
  visibility: hidden;       /* hidden by default, shown by JS */
}

/* Accessibility: keyboard focus visible */
.password-modal :focus-visible {
  outline: 3px solid rgba(255,75,59,0.12);
  border-radius: 6px;
}

/* small screen adjustments */
@media (max-width: 480px) {
  .password-modal .modal-title {
    font-size: 1.8rem;
    font-weight: 750;
    margin-bottom: 12px;
    padding-top: 25px;
  }
  
  .password-modal-inner { padding: 36px 18px 18px; max-width: 96%; }
}


/* ---- custom "coming soon" cursor/overlay ---- */

/* container basics */
.case-tile.coming-soon {
  position: relative;
  display: inline-block; /* or block depending on your layout */
  cursor: none; /* hide default cursor on pointer devices, replaced by custom element */
  -webkit-tap-highlight-color: transparent;
}

/* hide custom cursor on coarse (touch) pointers so touch UX isn't broken */
@media (pointer: coarse) {
  .case-tile.coming-soon {
    cursor: default;
  }
  /* show a centered overlay on touch */
  .case-tile.coming-soon .cs-touch-overlay {
    display: flex;
  }
}

/* custom cursor element — created in JS and appended to body, class name: .cs-cursor */
.cs-cursor {
  position: fixed;
  pointer-events: none;       /* don't block clicks */
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.96);
  transition: transform 120ms ease, opacity 120ms ease;
  z-index: 99999;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  font-weight: 700;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 13px;
  text-align: center;
  line-height: 1;
  color: #fff;
  background: rgba(51,35,51,0.70); /* opaque dark circle */
  border: 2px solid rgba(255,255,255,0.06);
}

/* visible state */
.cs-cursor.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* subtle grow on hover */
.cs-cursor.grow {
  transform: translate(-50%, -50%) scale(1.06);
}

/* small-screen circle size */
@media (max-width: 480px) {
  .cs-cursor {
    width: 88px;
    height: 88px;
    font-size: 12px;
  }
}

/* text within cursor — center alignment */
.cs-cursor .cs-text {
  padding: 6px 10px;
  text-transform: none;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* ---- Touch fallback overlay (centered on the tile) ---- */
.case-tile.coming-soon .cs-touch-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(51,35,51,0.86);
  color: #fff;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  border-radius: inherit;
  pointer-events: none;
}

/* keep focus outline for keyboard users */
.case-tile.coming-soon:focus {
  outline: 3px solid rgba(255,75,59,0.14);
  outline-offset: 4px;
}

/* ensure image fits container (you probably already have this) */
.case-tile.coming-soon img {
  display: block;
  width: 100%; height: auto;
}

/* prefers-reduced-motion: avoid translations/scale */
@media (prefers-reduced-motion: reduce) {
  .cs-cursor, .cs-cursor.visible, .cs-cursor.grow {
    transition: none;
    transform: translate(-50%, -50%) !important;
  }
}

