/* Black & white auth pages for store portal */
:root {
  --store-black: #0a0a0a;
  --store-white: #ffffff;
  --store-gray-100: #f5f5f5;
  --store-gray-200: #e5e5e5;
  --store-gray-400: #a3a3a3;
  --store-gray-600: #525252;
  --store-gray-800: #262626;
  --store-radius: 10px;
  --store-max: 440px;
  --store-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body.store-auth-body {
  font-family: var(--store-font);
  background: var(--store-gray-100);
  color: var(--store-black);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

@media (min-width: 481px) {
  html, body.store-auth-body {
    display: flex;
    justify-content: center;
    background: #ebebeb;
  }
  .store-auth-page {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  }
}

.store-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--store-max);
  margin: 0 auto;
  background: var(--store-white);
}

.store-auth-hero {
  position: relative;
  flex: 0 0 38vh;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
  color: var(--store-white);
  text-align: center;
  background: var(--store-black);
}

.store-auth-logo img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.store-auth-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.store-auth-hero p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 280px;
  line-height: 1.45;
}

.store-auth-form {
  flex: 1;
  padding: 28px 24px 32px;
}

.store-field { margin-bottom: 14px; }

.store-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid var(--store-gray-200);
  border-radius: var(--store-radius);
  background: var(--store-white);
  color: var(--store-black);
  outline: none;
  transition: border-color 0.15s;
}

.store-input:focus {
  border-color: var(--store-black);
}

.store-input-wrap {
  position: relative;
}

.store-input-wrap .store-input { padding-right: 48px; }

.store-input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--store-gray-400);
  padding: 4px;
  display: flex;
}

.store-btn-primary {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--store-white);
  background: var(--store-black);
  border: none;
  border-radius: var(--store-radius);
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}

.store-btn-primary:hover { background: var(--store-gray-800); }
.store-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.store-btn-secondary {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--store-black);
  background: var(--store-white);
  border: 1px solid var(--store-gray-200);
  border-radius: var(--store-radius);
  cursor: pointer;
  margin-top: 8px;
}

.store-btn-secondary:hover { background: var(--store-gray-100); }

.store-error {
  display: none;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--store-radius);
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.4;
}

.store-error.show { display: block; }

.store-success {
  display: none;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--store-radius);
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
  line-height: 1.4;
}

.store-success.show { display: block; }

.store-link-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--store-gray-600);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.store-auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--store-gray-600);
}

.store-auth-footer a {
  color: var(--store-black);
  font-weight: 600;
  text-decoration: none;
}

.store-auth-footer a:hover { text-decoration: underline; }

.store-auth-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--store-gray-400);
  line-height: 1.45;
  text-align: center;
}

.store-forgot-panel {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--store-gray-200);
}

.store-forgot-panel.show { display: block; }
