/* Kealinka Seller Portal — auth v2 (login / register / forgot password) */

.auth-main.v2 {
  background-image: url("https://images.unsplash.com/photo-1741991110666-88115e724741?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
}

.auth-main.v2 .bg-overlay {
  background: linear-gradient(115deg, rgba(10, 15, 30, 0.78) 0%, rgba(10, 15, 30, 0.55) 45%, rgba(10, 15, 30, 0.35) 100%);
  backdrop-filter: blur(1px);
}

.auth-main.v2 .auth-sidecontent .auth-sidefooter {
  width: 520px;
}

.auth-card-logo {
  padding: 2.25rem 2.5rem 0;
}

.auth-card-logo img {
  height: 32px;
  width: auto;
}

.auth-sidefooter h2 {
  font-size: 1.75rem;
  line-height: 1.25;
  color: #ffffff;
}

.auth-sidefooter .auth-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

/* Card panel switching — swap between sign in / create account / reset
   password without a page reload, sliding like tabs. */
.auth-main.v2 .auth-form .card {
  border: none;
  box-shadow: 0 20px 50px rgba(10, 15, 30, 0.25);
  overflow: hidden;
}

.auth-main.v2 .auth-form .card-body {
  padding: 0;
}

.auth-panels {
  position: relative;
  overflow: hidden;
  transition: height 0.35s ease;
}

.auth-form {
  --auth-pad-x: 2.5rem;
}

.auth-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem var(--auth-pad-x) 2.25rem;
  transition: left 0.45s ease, opacity 0.35s ease;
}

.auth-panel .mb-3 {
  margin-bottom: 1.35rem !important;
}

.auth-panel h4.mb-1 {
  margin-bottom: 0.5rem !important;
}

/* Buttons match the full width of the input fields above them. */
.auth-panel .btn {
  width: 100%;
}

/* Password show/hide toggle, appended to the input via .input-group. */
.password-toggle {
  cursor: pointer;
  color: #8a94a6;
}

.password-toggle:hover {
  color: #495057;
}

.auth-panel.active {
  left: 0;
  opacity: 1;
  z-index: 2;
}

.auth-panel.inactive-left {
  left: -100%;
  opacity: 0;
  z-index: 1;
}

.auth-panel.inactive-right {
  left: 100%;
  opacity: 0;
  z-index: 1;
}

/* Notifications live in a shared slot below the logo instead of inside
   each sliding panel, so a message appearing grows the card naturally
   instead of pushing the submit button out of a height-locked panel.
   Same left/right boundary as the panel content below it (via
   --auth-pad-x), so it starts and ends exactly where the heading and
   inputs do — styled with the original box look (padding/radius/colors). */
.auth-messages {
  padding: 0 var(--auth-pad-x);
}

.auth-form-message {
  display: none;
  width: 100%;
  box-sizing: border-box;
  margin: 1.25rem 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
}

.auth-form-message.error {
  display: block;
  background: #fdeaea;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}

.auth-form-message.success {
  display: block;
  background: #e7f8ec;
  color: #1e8e4a;
  border: 1px solid #bfe8cc;
}

@media (max-width: 575.98px) {
  .auth-form {
    --auth-pad-x: 1.5rem;
  }
  .auth-main.v2 .auth-form .card {
    max-width: 320px;
    min-height: 0;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .auth-card-logo {
    padding: 1.5rem 1.5rem 0;
  }
  .auth-card-logo img {
    height: 26px;
  }
  .auth-panel {
    padding: 1.25rem var(--auth-pad-x) 1.75rem;
  }
  .auth-panel h4 {
    font-size: 1.05rem;
  }
  .auth-panel .mb-3 {
    margin-bottom: 1rem !important;
  }
}
