@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: #0c1012 !important;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* Page Layout */
.shopify-login-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 32px 20px 24px;
  position: relative;
  background-color: #0c1012;
}

/* Top Header / Logo */
.shopify-header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 8px;
  margin-bottom: 24px;
}

.shopify-logo-img {
  height: 32px;
  width: auto;
}

/* Main Content Container */
.shopify-main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 12px 0 32px;
}

/* White Login Card */
.shopify-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 36px 36px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

/* Card Typography */
.shopify-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.shopify-subtitle {
  font-size: 14px;
  color: #616161;
  font-weight: 400;
  margin-bottom: 24px;
}

/* Form Groups & Inputs */
.shopify-form-group {
  margin-bottom: 20px;
  position: relative;
}

.shopify-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #303030;
  margin-bottom: 6px;
}

.shopify-input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid #c9cccf;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1a1a;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.shopify-input:focus {
  border-color: #005bd3;
  box-shadow: 0 0 0 2px rgba(0, 91, 211, 0.25);
}

.shopify-input.has-error {
  border-color: #d72c0d !important;
  box-shadow: 0 0 0 1px #d72c0d !important;
}

.shopify-input-error-text {
  color: #d72c0d;
  font-size: 13px;
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 4px;
}

/* Password Input Wrapper */
.shopify-password-wrapper {
  position: relative;
  width: 100%;
}

.shopify-password-wrapper .shopify-input {
  padding-right: 42px;
}

[dir="rtl"] .shopify-password-wrapper .shopify-input {
  padding-right: 14px;
  padding-left: 42px;
}

.shopify-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #616161;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

[dir="rtl"] .shopify-password-toggle {
  right: auto;
  left: 12px;
}

.shopify-password-toggle:hover {
  color: #1a1a1a;
}

/* Buttons */
.shopify-btn-primary {
  width: 100%;
  height: 44px;
  background-color: #1c1d1f;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shopify-btn-primary:hover {
  background-color: #303030;
}

.shopify-btn-primary:active {
  transform: scale(0.995);
}

/* Divider */
.shopify-divider {
  display: flex;
  align-items: center;
  margin: 22px 0;
  text-align: center;
}

.shopify-divider-line {
  flex: 1;
  height: 1px;
  background-color: #e1e3e5;
}

.shopify-divider-text {
  padding: 0 14px;
  font-size: 13px;
  color: #616161;
  font-weight: 400;
}

/* Passkey Button */
.shopify-btn-passkey {
  width: 100%;
  height: 44px;
  background-color: #f1f2f4;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.15s ease;
  margin-bottom: 12px;
}

.shopify-btn-passkey:hover {
  background-color: #e4e5e7;
}

/* Social Buttons Grid */
.shopify-social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.shopify-btn-social {
  height: 44px;
  background-color: #f1f2f4;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.shopify-btn-social:hover {
  background-color: #e4e5e7;
}

.shopify-btn-social:active {
  transform: scale(0.97);
}

.shopify-btn-social svg {
  width: 20px;
  height: 20px;
}

/* Email Display Badge (Step 2) */
.shopify-email-badge {
  background-color: #f1f2f4;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.shopify-email-text {
  font-size: 14px;
  color: #303030;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-change-email-link {
  font-size: 13px;
  color: #005bd3;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.shopify-change-email-link:hover {
  text-decoration: underline;
  color: #004299;
}

/* Forgot password link */
.shopify-forgot-link {
  display: inline-block;
  font-size: 13px;
  color: #005bd3;
  text-decoration: none;
  margin-top: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.shopify-forgot-link:hover {
  text-decoration: underline;
}

/* Card Bottom Links */
.shopify-card-footer {
  font-size: 14px;
  color: #303030;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shopify-link-blue {
  color: #005bd3;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.shopify-link-blue:hover {
  text-decoration: underline;
}

/* Error Alert Box for Unavailable Features */
.shopify-error-alert {
  background-color: #fff4f4;
  border: 1px solid #fecdd3;
  color: #c62828;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  animation: fadeIn 0.2s ease-in-out;
}

.shopify-error-alert-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shopify-error-alert-close {
  background: none;
  border: none;
  color: #c62828;
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  line-height: 1;
}

/* Footer Section */
.shopify-footer {
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin-top: auto;
  padding-top: 24px;
}

.shopify-help-link {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}

.shopify-help-link:hover {
  text-decoration: underline;
}

.shopify-legal-text {
  color: #999999;
  font-size: 11px;
  line-height: 1.6;
  max-width: 660px;
  margin: 0 auto;
}

.shopify-legal-text a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

/* Loading Card Styles */
.shopify-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0 8px;
}

.shopify-spinner-ring {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}

.shopify-spinner-svg {
  animation: shopifySpin 1s linear infinite;
  width: 100%;
  height: 100%;
}

@keyframes shopifySpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.shopify-loading-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.shopify-loading-sub {
  font-size: 14px;
  color: #616161;
  line-height: 1.5;
  margin-bottom: 12px;
}

.shopify-loading-note {
  font-size: 12px;
  color: #8c8c8c;
  margin-bottom: 24px;
}

.shopify-secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #f1f8f5;
  border: 1px solid #d1e7dd;
  border-radius: 8px;
  padding: 10px 16px;
  width: 100%;
  color: #008060;
  font-size: 13px;
  font-weight: 600;
}

/* Card Logo & Recovery Button Styles (Captures 1 & 2) */
.shopify-card-logo {
  margin-bottom: 24px;
}

.shopify-card-logo img {
  height: 32px;
  width: auto;
}

.shopify-btn-secondary {
  width: 100%;
  height: 44px;
  background-color: #f1f2f4;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
  margin-top: 12px;
  margin-bottom: 16px;
}

.shopify-btn-secondary:hover {
  background-color: #e4e5e7;
}

.shopify-action-link {
  font-size: 14px;
  color: #005bd3;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 20px;
}

.shopify-action-link:hover {
  text-decoration: underline;
}

.shopify-card-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  font-size: 13px;
  color: #616161;
}

.shopify-card-bottom-links a {
  color: #616161;
  text-decoration: none;
}

.shopify-card-bottom-links a:hover {
  text-decoration: underline;
  color: #1a1a1a;
}

/* Wizard & Checkbox Agreement Styles for Confirmation Page */
.shopify-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e1e3e5;
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}

.shopify-progress-fill {
  height: 100%;
  background-color: #008060;
  width: 33.33%;
  transition: width 0.3s ease;
}

.shopify-checkbox-box {
  background-color: #f6f6f7;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 20px 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.shopify-checkbox-box:hover {
  border-color: #008060;
  background-color: #f1f8f5;
}

.shopify-checkbox-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #008060;
  cursor: pointer;
}

.shopify-checkbox-label {
  font-size: 13.5px;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.shopify-btn-primary:disabled {
  background-color: #8c8c8c !important;
  opacity: 0.6;
  cursor: not-allowed;
}

input[type="hidden"] {
  display: none !important;
}

/* Keyframe animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE LAYOUT MATCHING CAPTURE 3
   ============================================================ */
@media (max-width: 600px) {
  .shopify-login-wrapper {
    padding: 24px 16px 20px;
  }

  .shopify-header {
    justify-content: center;
    margin-bottom: 20px;
    padding: 0;
  }

  .shopify-logo-img {
    height: 36px;
  }

  .shopify-main-content {
    margin: 8px 0 24px;
    width: 100%;
  }

  .shopify-card {
    max-width: 100%;
    padding: 32px 20px 28px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  }

  .shopify-title {
    font-size: 24px;
  }

  .shopify-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .shopify-social-grid {
    gap: 8px;
  }

  .shopify-btn-social {
    height: 46px;
  }

  .shopify-btn-primary, .shopify-btn-passkey {
    height: 46px;
    font-size: 15px;
  }

  .shopify-footer {
    padding-top: 16px;
  }

  .shopify-legal-text {
    font-size: 11px;
    padding: 0 8px;
  }
}
