/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

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

@keyframes bar-grow {
  from {
    height: 0;
  }
  to {
    height: var(--bar-target);
  }
}

.bar-fill {
  height: var(--bar-target);
  animation: bar-grow 0.4s ease-out;
}

.font-lato {
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
}

.customer-signin-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 5%, #dff6ff 0%, #eef4ff 35%, #f7f9fc 100%);
  color: #0f172a;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

.customer-signin-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.customer-signin-stack {
  width: min(100%, 26rem);
  display: grid;
  justify-items: center;
  gap: 1.65rem;
}

.customer-signin-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(24px);
  opacity: 0.45;
  pointer-events: none;
}

.customer-signin-orb--teal {
  width: 18rem;
  height: 18rem;
  left: -3rem;
  top: 4rem;
  background: #7ae7d7;
}

.customer-signin-orb--blue {
  width: 20rem;
  height: 20rem;
  right: -5rem;
  bottom: -2rem;
  background: #7fb0ff;
}

.customer-signin-card {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(9px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.65rem;
  padding: 1.65rem;
  box-shadow: 0 28px 56px -32px rgba(15, 23, 42, 0.42);
}

.customer-signin-badge {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1f6feb 100%);
  box-shadow: 0 10px 22px -14px rgba(15, 23, 42, 0.62);
}

.customer-signin-badge svg {
  width: 1.2rem;
  height: 1.2rem;
}

.customer-signin-page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0f172a;
  text-align: center;
}

.customer-signin-title {
  margin: 0.95rem 0 0;
  font-size: clamp(1.35rem, 2.5vw, 1.62rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.customer-signin-copy {
  margin: 0.6rem 0 0;
  color: #475569;
  font-size: 0.925rem;
  line-height: 1.45;
}

.customer-signin-flash {
  margin: 0.95rem 0 0;
  border-radius: 0.8rem;
  border: 1px solid;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
}

.customer-signin-flash--notice {
  border-color: #99f6e4;
  background: #ecfeff;
  color: #0f766e;
}

.customer-signin-flash--alert {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.customer-signin-form {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.72rem;
}

.customer-signin-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.customer-signin-input {
  appearance: none;
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid #d4dbe6;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.78rem 0.92rem;
  font-size: 0.95rem;
  color: #0f172a;
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.customer-signin-input::placeholder {
  color: #94a3b8;
}

.customer-signin-input:focus {
  border-color: #4f8cff;
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.17);
}

.customer-signin-submit {
  margin-top: 0.2rem;
  appearance: none;
  border: 0;
  border-radius: 0.9rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.82rem 1rem;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.customer-signin-submit:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.customer-signin-submit:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.customer-signin-submit:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .customer-signin-shell {
    padding: 1rem;
  }

  .customer-signin-card {
    padding: 1.35rem;
    border-radius: 1.35rem;
  }

  .customer-signin-stack {
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bar-fill {
    animation: none;
  }

  .customer-signin-submit {
    transition: none;
    transform: none;
  }
}
