/* Customer-facing account area (log in / settings).
   Client is Bootstrap 3 + plain CSS (no Tailwind here — see build.cjs, which
   copies assets/css verbatim). Keep all styling for these pages in this file. */

/* ---- Page shell (shared by log in + settings) ---- */
.customer-page {
  display: flex;
  flex-direction: column;
  /* 91px = height of the shared client header (top bar + navbar) so the
     footer sticks to the bottom on short pages, like the blog. */
  min-height: calc(100vh - 91px);
  background: #fff;
}

/* ---- Auth card (log in) ---- */
.customer-auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 15px;
}

.customer-card {
  width: 100%;
  max-width: 400px;
}

.customer-logo {
  text-align: center;
  margin-bottom: 24px;
}

.customer-logo img {
  width: 120px;
  height: auto;
}

.customer-title {
  text-align: center;
  font-weight: 700;
  margin: 0 0 8px;
  color: #111827;
}

.customer-subtitle {
  text-align: center;
  color: #8a8f98;
  margin: 0 0 32px;
  font-size: 14px;
}

/* ---- Fields ---- */
.customer-field {
  margin-bottom: 22px;
}

.customer-field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #4a4f57;
  margin-bottom: 8px;
}

.customer-input {
  width: 100%;
  max-width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #dfe3e8;
  background: #fff;
  box-shadow: none;
  padding: 0 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.customer-input:focus {
  border-color: #1894ce;
  box-shadow: 0 0 0 3px rgba(24, 148, 206, 0.18);
  outline: none;
}

.customer-field__error {
  color: #e5484d;
  font-size: 12px;
  margin: 6px 0 0;
}

/* ---- Primary button (animated flowing gradient) ---- */
.customer-btn {
  position: relative;
  overflow: hidden;
  min-width: 210px;
  height: 50px;
  padding: 0 28px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    #0f6fa8,
    #1894ce,
    #16d0d8,
    #1894ce,
    #0f6fa8
  );
  background-size: 300% 100%;
  animation: customer-btn-flow 6s linear infinite;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease,
    letter-spacing 0.35s ease;
}

.customer-btn--block {
  width: 100%;
}

@keyframes customer-btn-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

.customer-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 140%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.customer-btn:hover {
  transform: translateY(-2px);
  letter-spacing: 1px;
  box-shadow:
    0 14px 34px rgba(22, 208, 216, 0.45),
    0 6px 16px rgba(24, 148, 206, 0.35);
}

.customer-btn:hover::before {
  left: 140%;
}

.customer-btn:active {
  transform: translateY(0) scale(0.99);
}

.customer-btn__text {
  position: relative;
  z-index: 1;
  color: #fff;
  display: inline-flex;
  align-items: center;
}

.customer-btn__arrow {
  margin-left: 14px;
  color: #fff;
  transition: transform 0.35s ease;
}

.customer-btn:hover .customer-btn__arrow {
  transform: translateX(9px);
}

/* ---- Settings (account) ---- */
.customer-account-main {
  flex: 1;
  padding: 48px 15px;
}

.customer-container {
  max-width: 760px;
  margin: 0 auto;
}

.customer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.customer-topbar__title {
  font-weight: 700;
  color: #111827;
  font-size: 22px;
  margin: 0;
}

.customer-topbar__sub {
  color: #9aa0a8;
  font-size: 13px;
  margin: 2px 0 0;
}

.customer-account-card {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
  padding: 28px 28px 30px;
  margin-bottom: 28px;
}

.customer-account-card__title {
  font-weight: 700;
  color: #111827;
  font-size: 18px;
  margin: 0 0 22px;
}

.customer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.customer-grid .customer-field {
  margin-bottom: 0;
}

.customer-field--full {
  grid-column: 1 / -1;
}

.customer-actions {
  margin-top: 26px;
}

.customer-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid #e2e5ea;
  background: #fff;
  color: #4a4f57;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.customer-logout:hover {
  border-color: #e5484d;
  color: #e5484d;
  background: #fdf2f2;
  text-decoration: none;
}

@media (max-width: 640px) {
  .customer-grid {
    grid-template-columns: 1fr;
  }
  .customer-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
