/* Login page (Auth/LoginView). Follows docs/design-system.md: tokens and the .hv1 scope come from
   assets/css/Layout/storefront.css. Register / reset pages still use the older rules in assets/msglow/css/profile.css. */

.v1-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 16px;
}

.v1-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.v1-auth-logo {
  display: block;
  width: 180px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.v1-auth-title {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.v1-auth-sub {
  margin: 0 0 24px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-muted);
}

.v1-auth-field {
  margin-bottom: 16px;
}

.v1-auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.v1-auth-input-wrap {
  position: relative;
}

.v1-auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  outline: 0;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.v1-auth-input::placeholder {
  color: #94a3b8;
}

.v1-auth-input:focus {
  background: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.25rem rgba(244, 114, 182, 0.25);
}

.v1-auth-input-wrap .v1-auth-input {
  padding-right: 46px;
}

/* eye icon: a real button so it can be reached with the keyboard */
.v1-auth-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s;
}

.v1-auth-toggle:hover,
.v1-auth-toggle:focus-visible {
  color: var(--brand-primary-hover);
}

.v1-auth-forgot {
  margin-bottom: 20px;
  font-size: 0.85rem;
  text-align: right;
}

/* a { color: inherit !important } in style.css, so link colours need !important */
.v1-auth a.v1-auth-link {
  font-weight: 600;
  color: var(--brand-primary-hover) !important;
}

.v1-auth a.v1-auth-link:hover {
  text-decoration: underline;
}

/* .v1-btn-brand sets only the background; without these the label takes Bootstrap's dark default */
.v1-auth-submit {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: #fff;
  width: 100%;
  height: 44px;
  font-weight: 700;
}

.v1-auth-foot {
  margin: 20px 0 0;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-muted);
}

@media (max-width: 575.98px) {
  .v1-auth-card {
    padding: 24px 20px;
  }
}

/* Register: a wider card */
.v1-auth-card-wide {
  max-width: 500px;
}

/* inline validation message under a field (filled by validateEmail / validatePhoneNumber / validatePassword) */
.v1-auth-error {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #ef4444;
}

.v1-auth-error:empty {
  display: none;
}

.v1-auth-policy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.v1-auth-policy input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--brand-primary-hover);
}

.v1-auth-policy p {
  margin: 0;
}
