/* Storefront Client Auth Styles (Ported 100% from frontend/login.html & frontend/index.css) */
.auth-page {
  min-height: calc(100vh - 76px);
  background: linear-gradient(135deg, var(--surface-soft) 0%, var(--surface-blue) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  position: relative;
}

.auth-copy {
  display: grid;
  gap: 1.2rem;
  max-width: 620px;
}

.auth-copy .eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.auth-copy .eyebrow i {
  color: var(--brand-700);
}

.auth-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
}

.auth-copy h1 span {
  color: var(--brand-700);
}

.auth-copy p.auth-desc {
  max-width: 540px;
  margin: 0 0 0.5rem 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Features List on Left Column */
.auth-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: grid;
  gap: 1.2rem;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-features .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--surface-blue);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid rgba(var(--brand-700-rgb), 0.15);
  box-shadow: 0 4px 10px rgba(var(--brand-700-rgb), 0.08);
}

.auth-features .feature-text {
  display: flex;
  flex-direction: column;
}

.auth-features .feature-text h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-900);
}

.auth-features .feature-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Floating 3D image in the middle */
.auth-floating-img-wrapper {
  position: absolute;
  left: 42%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 18vw, 240px);
  pointer-events: none;
  z-index: 5;
}

.auth-floating-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(var(--brand-900-rgb), 0.12));
  animation: authFloat 6s ease-in-out infinite;
}

@keyframes authFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

/* Trust Banner at Left Column Bottom */
.auth-trust-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--brand-700-rgb), 0.18);
  max-width: 560px;
  gap: 1rem;
  box-shadow: 0 10px 25px rgba(var(--brand-900-rgb), 0.04);
}

.trust-banner-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(var(--brand-700-rgb), 0.2);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: #fff;
  flex-shrink: 0;
}

.trust-banner-text h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-900);
}

.trust-banner-text p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Login Card styling */
.auth-card {
  border: 1px solid rgba(var(--brand-700-rgb), 0.18);
  border-radius: 16px;
  padding: 2.2rem;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(var(--brand-900-rgb), 0.08);
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.auth-card-header {
  position: relative;
  margin-bottom: 1.5rem;
  text-align: center;
}

.gift-icon-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 7.5rem;
  color: rgba(var(--brand-700-rgb), 0.035);
  z-index: 1;
  pointer-events: none;
}

.gift-subtitle {
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.gift-subtitle i {
  color: var(--brand-700);
}

.auth-card-header h2 {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  color: var(--brand-900);
  margin: 0;
  font-weight: 800;
}

.auth-card .form-grid {
  margin-top: 0;
  display: grid;
  gap: 1.1rem;
}

.auth-card .field {
  display: grid;
  gap: 0.35rem;
}

.auth-card .field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-900);
}

/* Custom Input Wrapper with Icons */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border: 1.5px solid #d8e5e8;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: all 0.2s ease;
  outline: none;
}

.input-wrapper input:focus {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px rgba(var(--brand-700-rgb), 0.12);
}

.input-wrapper .input-icon {
  position: absolute;
  left: 1rem;
  color: #9cb1b6;
  font-size: 1.05rem;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input-wrapper .password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #9cb1b6;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.2s;
}

.input-wrapper .password-toggle:hover {
  color: var(--brand-700);
}

/* Remember Me and Forgot Password row */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin: 0.2rem 0;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  color: var(--muted);
}

.remember-me input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-700);
  cursor: pointer;
  border-radius: 4px;
}

.forgot-link {
  color: var(--brand-700);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: var(--brand-900);
  text-decoration: underline;
}

/* Submit Button Custom Styling */
.btn-submit {
  width: 100%;
  padding: 0.85rem;
  border-radius: 30px;
  background-color: var(--brand-700);
  color: #fff;
  border: none;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(var(--brand-700-rgb), 0.25);
}

.btn-submit:hover {
  background-color: var(--brand-800);
}

.btn-submit:active {
  transform: scale(0.98);
}

/* Divider & Social Buttons */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.2rem 0;
  color: #b0c4c7;
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e1eeef;
}

.auth-divider:not(:empty)::before {
  margin-right: 0.75rem;
}

.auth-divider:not(:empty)::after {
  margin-left: 0.75rem;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-social {
  width: 100%;
  padding: 0.75rem;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #e1eeef;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-social:hover {
  background: #f8fcfd;
  border-color: var(--brand-700);
}

.btn-social svg {
  flex-shrink: 0;
}

.auth-alt {
  margin: 1.2rem 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.auth-alt a {
  color: var(--brand-700);
  text-decoration: none;
  font-weight: 700;
}

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

@media (max-width: 991px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .auth-floating-img-wrapper {
    display: none;
  }
}
