/* =====================================================================
   SELLER LOGIN PAGE — Styles
   =====================================================================
   Each block below styles one piece of seller-login.html. The class
   names (like ".nexus-login-title") match the "class" attribute on the
   matching element in the HTML file, so it's easy to find what to edit:
   search this file for the class name you see in the HTML.

   Common things you might want to change:
   - Colors: look for "color:" or "background:" (e.g. #1a1a1a is near-black)
   - Text size: look for "font-size:"
   - Spacing: look for "padding:" or "margin:"
   - The background photo on the right side: see ".nexus-login-right" below
   ===================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Page layout: form on the left, photo on the right ---- */

.nexus-login-page {
  display: flex;
  min-height: 100vh;
}

.nexus-login-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 40px;
}

.nexus-login-content {
  width: 100%;
  max-width: 380px;
}

/* Only shown once a logo URL comes back from the seller pages settings
   (see seller-login.js) — stays hidden otherwise. */
.nexus-login-logo {
  display: block;
  max-height: 40px;
  max-width: 160px;
  margin: 0 0 24px;
  object-fit: contain;
}

/* ---- Text: heading and subtitle above the form ---- */

.nexus-login-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.nexus-login-subtitle {
  font-size: 14px;
  color: #6b6b6b;
  line-height: 1.5;
  margin: 0 0 28px;
}

/* The success screen's heading/subtitle sit next to the icon, not above
   the form, so they don't need the same bottom margins as the form's. */
.nexus-login-success-text .nexus-login-title {
  margin: 0 0 4px;
}

.nexus-login-success-text .nexus-login-subtitle {
  margin: 0;
}

/* ---- The email input box ---- */

.nexus-login-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

.nexus-login-input:focus {
  border-color: #1a1a1a;
}

.nexus-login-error {
  color: #d92d20;
  font-size: 13px;
  text-align: left;
  min-height: 18px;
  margin: 0 0 8px;
}

/* ---- The "Continue with email" button (and its states) ---- */

.nexus-login-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #1a1a1a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.nexus-login-button:hover {
  opacity: 0.85;
}

.nexus-login-button:disabled {
  /* Shown while the email is being sent (see seller-login.js) */
  opacity: 0.5;
  cursor: not-allowed;
}

.nexus-login-button-secondary {
  /* Used by the "Try another email" button on the success screen */
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #d9d9d9;
}

/* ---- The "check your email" screen ----
   Icon sits beside the heading/subtitle (a 2-column row), with the
   buttons/links below in their own block. */

.nexus-login-success-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.nexus-login-success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f4ea;
  color: #1e7e34;
  border-radius: 50%;
}

.nexus-login-success-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- "Resend in Ns" — underlined, link-styled button ---- */

.nexus-login-resend-wrap {
  text-align: center;
}

.nexus-login-resend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  color: #3f3f46;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.nexus-login-resend:disabled {
  /* Shown during the countdown, before resending is allowed again */
  color: #a1a1aa;
  cursor: not-allowed;
}

.nexus-login-resend:not(:disabled):hover {
  color: #1a1a1a;
}

/* ---- "Not able to login? Contact support" ---- */

.nexus-login-support-wrap {
  text-align: center;
}

.nexus-login-support {
  margin: 8px 0 0;
  font-size: 13px;
  color: #52525b;
}

.nexus-login-support a {
  color: #52525b;
  text-decoration: underline;
}

.nexus-login-support a:hover {
  color: #1d4ed8;
}

/* ---- The photo on the right side of the page ----
   Replace the URL below to use a different background photo.
   This side is hidden automatically on small/mobile screens. */

.nexus-login-right {
  flex: 1;
  background-image: url("https://images.unsplash.com/photo-1705862063658-4a18c345b969?q=80&w=3613&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-position: center;
}

@media (max-width: 900px) {
  .nexus-login-right {
    /* Screens narrower than 900px hide the photo entirely. */
    display: none;
  }
}
