/* Poonawalla Fincorp festive login — background, garland, arch, characters,
   and form. Assets in /vendor/images/brand/ are copied from pfl-frontend
   (separate hosting, so the CMS carries its own copy rather than pointing
   at it). */

.pfl-auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #041646 0%, #002b77 45%, #0e2152 100%);
  padding-bottom: 2rem;
  overflow: hidden;
}

.pfl-garland {
  width: 100%;
  height: clamp(2.5rem, 8vw, 4rem);
  flex-shrink: 0;
  background-image: url("/vendor/images/brand/flower-garland.png");
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 100%;
  animation: pfl-garland-drop 1.15s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pfl-garland-drop {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.pfl-arch {
  position: relative;
  width: min(96%, 960px);
  height: clamp(28rem, 42vw, 36rem);
  flex-shrink: 0;
  margin-top: clamp(2rem, 6vw, 4.5rem);
  background-image: url("/vendor/images/brand/hero-banner-curv.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
}

@media (max-width: 576px) {
  .pfl-arch {
    background-image: url("/vendor/images/brand/mobile/hero-banner-curve.png");
  }
}

/* Characters — pinned to the bottom corners of the arch, same technique as
   the frontend hero (absolute, bottom: 0), just scaled down for a narrower
   login-card-sized arch instead of the full-width homepage hero. */
.pfl-arch-man,
.pfl-arch-woman {
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: clamp(5.5rem, 18vw, 12rem);
  height: auto;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.pfl-arch-man {
  left: clamp(0.5rem, 3vw, 2rem);
  animation: pfl-fade-in-left 0.95s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pfl-arch-woman {
  right: clamp(0.5rem, 3vw, 2rem);
  animation: pfl-fade-in-right 0.95s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pfl-fade-in-left {
  from { opacity: 0; transform: translateX(-3.5rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pfl-fade-in-right {
  from { opacity: 0; transform: translateX(3.5rem); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 576px) {
  .pfl-arch-man,
  .pfl-arch-woman {
    display: none;
  }
}

/* Login fields sit directly on the arch background — no card/white box. */
.pfl-auth-form {
  position: relative;
  z-index: 2;
  width: min(85%, 360px);
  margin: 0 auto;
  padding-top: clamp(2.25rem, 5vw, 3rem);
  text-align: center;
}

.pfl-arch-logo {
  width: clamp(8rem, 6rem + 8vw, 11.5rem);
  height: auto;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: pfl-fade-down 0.8s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pfl-fade-down {
  from { opacity: 0; transform: translateY(-1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pfl-zoom-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}

.pfl-auth-form h3,
.pfl-auth-form p {
  color: #fff;
  opacity: 0;
  animation: pfl-zoom-in 0.75s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pfl-auth-form p {
  color: rgba(255, 255, 255, 0.75);
  animation-delay: 0.75s;
}

.pfl-auth-form form {
  text-align: left;
  opacity: 0;
  animation: pfl-zoom-in 0.75s 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .pfl-garland,
  .pfl-arch-man,
  .pfl-arch-woman,
  .pfl-arch-logo,
  .pfl-auth-form h3,
  .pfl-auth-form p,
  .pfl-auth-form form {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.pfl-auth-form .form-label {
  color: #fff;
  text-align: left;
  width: 100%;
}

.pfl-auth-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.pfl-auth-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.pfl-auth-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: #f4b63f;
  color: #fff;
  box-shadow: 0 0 0 0.15rem rgba(244, 182, 63, 0.25);
}

.pfl-auth-form .input-group-text {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.75);
}

.pfl-auth-form .invalid-feedback {
  color: #ffb4b4;
}

.btn-mse-primary {
  color: #0e2152;
  background-color: #f4b63f;
  border-color: #f4b63f;
  font-weight: 600;
}

.btn-mse-primary:hover {
  color: #0e2152;
  background-color: #ffc857;
  border-color: #ffc857;
}

.swal2-confirm{
  border: 0;
  border-radius: .25em;
  background: initial;
  background-color: #002b77;
  color: #fff;
  font-size: 1em;
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1000;
}

#loader {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  border: 5px solid transparent;
  border-top-color: #002b77;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
