/* =========================================================
   SPINE FK AUTH PAGE DESIGN
   Fakulti Komputer Strategic Planning System
   Paste at bottom of your auth CSS file
========================================================= */

.authentication-wrapper {
  position: relative;
  display: flex;
  flex-basis: 100%;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      rgba(8, 18, 45, 0.94) 0%,
      rgba(24, 38, 96, 0.9) 45%,
      rgba(105, 108, 255, 0.78) 100%),
    url('/assets/img/backgrounds/spine-fk-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.authentication-wrapper.authentication-basic {
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 9% 2rem 2rem;
}

.authentication-wrapper .authentication-inner {
  position: relative;
  z-index: 3;
  width: 100%;
}

.authentication-wrapper.authentication-basic .authentication-inner {
  max-width: 430px;
}

/* Background overlay grid and glow */
.authentication-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.18), transparent 25%),
    radial-gradient(circle at 82% 78%, rgba(105, 108, 255, 0.3), transparent 32%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    75px 75px,
    75px 75px;
}

.authentication-wrapper::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -180px;
  top: -160px;
  z-index: 0;
  border-radius: 50%;
  background: rgba(105, 108, 255, 0.3);
  filter: blur(45px);
  animation: spineGlow 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes spineGlow {
  from {
    transform: scale(1);
    opacity: 0.55;
  }

  to {
    transform: scale(1.16);
    opacity: 0.9;
  }
}

/* Hide / soften default template decorations */
.authentication-wrapper.authentication-basic .authentication-inner::before,
.authentication-wrapper.authentication-basic .authentication-inner::after {
  opacity: 0.18;
}

/* ===============================
   LEFT SIDE TEXT
================================ */

.auth-side-text {
  position: absolute;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 540px;
  color: #ffffff;
}

.auth-side-text .system-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: #ffffff;
}

.auth-side-text h1 {
  margin-bottom: 1rem;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: 0.04rem;
}

.auth-side-text p {
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.auth-side-text .strategy-points {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.auth-side-text .strategy-point {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.88rem;
  font-weight: 500;
  color: #ffffff;
}

/* ===============================
   LOGIN CARD
================================ */

.authentication-wrapper .card {
  position: relative;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 24px 60px rgba(8, 18, 45, 0.36),
    0 2px 10px rgba(105, 108, 255, 0.12);
}

.authentication-wrapper .card-body {
  padding: 2rem;
}

/* Logo */
.authentication-wrapper .app-brand {
  margin-bottom: 1.4rem !important;
  justify-content: center;
}

.authentication-wrapper .app-brand-link {
  display: flex;
  justify-content: center;
  align-items: center;
}

.authentication-wrapper .app-brand-logo img {
  max-height: 85px;
  width: auto;
  object-fit: contain;
}

/* Title */
.authentication-wrapper h4,
.authentication-wrapper h5 {
  color: #1f2a5c;
  font-weight: 700;
}

.authentication-wrapper p {
  color: #566a7f;
}

/* Form */
.authentication-wrapper .form-label {
  color: #38405f;
  font-weight: 500;
}

.authentication-wrapper .form-control {
  min-height: 42px;
  border-radius: 10px;
  border-color: #d9dee3;
}

.authentication-wrapper .form-control:focus {
  border-color: #696cff;
  box-shadow: 0 0 0 0.18rem rgba(105, 108, 255, 0.18);
}

.authentication-wrapper .input-group-text {
  border-radius: 0 10px 10px 0;
}

/* Checkbox */
.authentication-wrapper .form-check-input:checked {
  background-color: #696cff;
  border-color: #696cff;
}

/* Button */
.authentication-wrapper .btn-primary {
  min-height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f52ff, #696cff);
  border: none;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(105, 108, 255, 0.32);
}

.authentication-wrapper .btn-primary:hover {
  background: linear-gradient(135deg, #3f42e8, #5f61f2);
  box-shadow: 0 10px 22px rgba(105, 108, 255, 0.42);
}

/* Link */
.authentication-wrapper a {
  color: #696cff;
  text-decoration: none;
}

.authentication-wrapper a:hover {
  color: #4f52ff;
  text-decoration: underline;
}

/* Validation */
.authentication-wrapper .invalid-feedback {
  font-size: 0.82rem;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1199.98px) {
  .auth-side-text {
    left: 5%;
    max-width: 470px;
  }

  .auth-side-text h1 {
    font-size: 3rem;
  }

  .authentication-wrapper.authentication-basic {
    padding-right: 5%;
  }
}

@media (max-width: 991.98px) {
  .auth-side-text {
    display: none;
  }

  .authentication-wrapper.authentication-basic {
    justify-content: center;
    padding: 1.5rem;
  }

  .authentication-wrapper.authentication-basic .authentication-inner {
    max-width: 430px;
  }
}

@media (max-width: 575.98px) {
  .authentication-wrapper {
    background-position: center;
  }

  .authentication-wrapper.authentication-basic {
    padding: 1rem;
  }

  .authentication-wrapper .card-body {
    padding: 1.5rem;
  }

  .authentication-wrapper .app-brand-logo img {
    max-height: 70px;
  }

  .authentication-wrapper.authentication-basic .authentication-inner::before,
  .authentication-wrapper.authentication-basic .authentication-inner::after {
    display: none;
  }

  .authentication-wrapper h4 {
    font-size: 1.25rem;
  }

  .authentication-wrapper p {
    font-size: 0.9rem;
  }
}