/* =========================================
   GLOBAL
========================================= */

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: #eef3ff;
}

* {
  box-sizing: border-box;
}

.login-main {
  position: relative;
  width: 100%;
  height: 100dvh;
  padding: 16px 32px;

  overflow: hidden;

  background:
    radial-gradient(circle at 5% 10%, rgba(59, 130, 246, 0.18), transparent 28%),
    radial-gradient(circle at 95% 90%, rgba(99, 102, 241, 0.14), transparent 30%), #f4f7ff;
}

/* =========================================
   BACKGROUND GRID
========================================= */

.login-grid {
  position: absolute;
  inset: 0;

  pointer-events: none;

  opacity: 0.2;

  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);

  background-size: 50px 50px;
}

/* =========================================
   BACKGROUND ORBS
========================================= */

.login-orb {
  position: absolute;

  border-radius: 50%;

  pointer-events: none;

  filter: blur(5px);

  animation: floatOrb 14s ease-in-out infinite alternate;
}

.login-orb-1 {
  width: 420px;
  height: 420px;

  top: -220px;
  left: -120px;

  background: rgba(59, 130, 246, 0.14);
}

.login-orb-2 {
  width: 400px;
  height: 400px;

  right: -150px;
  bottom: -180px;

  background: rgba(99, 102, 241, 0.13);

  animation-delay: 3s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(25px, -20px) scale(1.05);
  }

  100% {
    transform: translate(-15px, 20px) scale(0.96);
  }
}

/* =========================================
   MAIN WRAPPER
========================================= */

.login-wrapper {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1728px;

  height: calc(100dvh - 32px);

  margin: 0 auto;

  display: flex;

  overflow: hidden;

  border-radius: 40px;

  background: rgba(255, 255, 255, 0.85);

  border: 1px solid rgba(255, 255, 255, 0.9);

  box-shadow:
    0 30px 80px rgba(30, 64, 175, 0.12),
    0 10px 30px rgba(15, 23, 42, 0.05);
}

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

.login-left {
  position: relative;

  flex: 1.15;

  min-width: 0;

  padding: 48px 42px 0;

  overflow: hidden;

  background:
    radial-gradient(circle at 10% 5%, rgba(191, 219, 254, 0.8), transparent 30%),
    linear-gradient(135deg, #eef5ff 0%, #f5f8ff 55%, #e9efff 100%);
}

/* =========================================
   LEFT DECORATIVE CIRCLE
========================================= */

.login-left::before {
  content: "";

  position: absolute;

  width: 430px;
  height: 430px;

  top: -150px;
  left: -80px;

  border-radius: 50%;

  background: rgba(191, 219, 254, 0.32);

  pointer-events: none;
}

/* =========================================
   HERO CONTENT
========================================= */

.hero-content {
  position: relative;
  z-index: 3;

  width: 100%;
  max-width: 570px;
}

/* =========================================
   BRAND
========================================= */

.brand-header {
  margin-bottom: 42px;
}

.brand-logo-text {
  display: block;

  width: auto;
  max-width: 320px;
  max-height: 70px;

  object-fit: contain;
  object-position: left center;
}

/* =========================================
   HERO BADGE
========================================= */

.hero-badge {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  padding: 8px 14px;

  margin-bottom: 20px;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.78);

  border: 1px solid rgba(191, 219, 254, 0.85);

  color: #475569;

  font-size: 12px;
  font-weight: 700;

  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.06);

  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;

  flex-shrink: 0;

  border-radius: 50%;

  background: #22c55e;

  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

/* =========================================
   HERO TITLE
========================================= */

.hero-title {
  margin: 0 0 18px;

  color: #0f172a;

  font-size: clamp(3rem, 4vw, 4.7rem);

  font-weight: 850;

  line-height: 0.98;

  letter-spacing: -0.06em;
}

.hero-title span {
  display: block;

  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #6366f1 100%);

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

/* =========================================
   HERO SUBTITLE
========================================= */

.hero-subtitle {
  max-width: 580px;

  margin: 0;

  color: #64748b;

  font-size: 16px;

  line-height: 1.65;
}

/* =========================================
   FEATURE CARDS
========================================= */

.hero-features {
  position: relative;
  z-index: 5;

  display: flex;
  flex-direction: column;

  gap: 8px;

  width: 100%;
  max-width: 465px;

  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;

  gap: 12px;

  min-height: 52px;

  padding: 8px 12px;

  border-radius: 16px;

  background: rgba(255, 255, 255, 0.78);

  border: 1px solid rgba(255, 255, 255, 0.9);

  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.05);

  backdrop-filter: blur(12px);
}

.feature-icon {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 50%;

  font-size: 15px;
}

.feature-icon-blue {
  color: #2563eb;
  background: #e8f1ff;
}

.feature-icon-purple {
  color: #7c3aed;
  background: #f0eaff;
}

.feature-icon-green {
  color: #059669;
  background: #dffaf1;
}

.feature-content strong {
  display: block;

  margin-bottom: 2px;

  color: #1e293b;

  font-size: 12px;
  font-weight: 800;
}

.feature-content span {
  display: block;

  color: #718096;

  font-size: 10px;
  line-height: 1.3;
}

/* =========================================
   ILLUSTRATION
========================================= */

.hero-illustration-wrapper {
  position: absolute;

  z-index: 1;

  left: 0;
  right: 0;

  bottom: -5px;

  height: 290px;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  pointer-events: none;
}

.hero-illustration-wrapper::before {
  content: "";

  position: absolute;

  width: 460px;
  height: 260px;

  bottom: -80px;

  border-radius: 50%;

  background: rgba(96, 165, 250, 0.12);

  filter: blur(35px);
}

.hero-illustration {
  position: relative;
  z-index: 2;

  display: block;

  width: min(75%, 580px);

  max-height: 280px;

  object-fit: contain;

  object-position: bottom center;
}

/* =========================================
   FLOATING DECORATIONS
========================================= */

.floating-decoration {
  position: absolute;

  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  border-radius: 14px;

  color: #fff;

  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.22);

  animation: floatingElement 5s ease-in-out infinite;
}

.floating-chat {
  right: 24%;

  top: 25%;

  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.floating-check {
  right: 12%;

  bottom: 35px;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: #10b981;

  animation-delay: 1s;
}

.floating-dots {
  position: absolute;

  right: 12%;

  top: 30%;

  display: grid;

  grid-template-columns: repeat(3, 7px);

  gap: 8px;
}

.floating-dots span {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #93c5fd;
}

@keyframes floatingElement {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* =========================================
   RIGHT SIDE
========================================= */

.login-right {
  flex: 0.85;

  min-width: 500px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px 70px;

  background: rgba(255, 255, 255, 0.92);
}

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

.login-card {
  width: 100%;
  max-width: 540px;

  padding: 38px 42px;

  border-radius: 26px;

  background: rgba(255, 255, 255, 0.94);

  border: 1px solid #edf1f7;

  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.06);
}

/* =========================================
   MOBILE BRAND
========================================= */

.sidebar-logo {
  width: 100%;
}

.brand-img-mobile {
  display: block;

  width: 62px;
  height: 62px;

  object-fit: contain;
}

/* =========================================
   LOGIN HEADER
========================================= */

.login-header {
  text-align: center;

  margin-bottom: 30px;
}

.login-header h2 {
  margin: 0 0 8px;

  color: #0f172a;

  font-size: 30px;

  font-weight: 800;

  letter-spacing: -0.04em;
}

.login-header p {
  margin: 0;

  color: #64748b;

  font-size: 14px;
}

.login-header p strong {
  color: #334155;
}

/* =========================================
   FORM
========================================= */

.login-form .form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;

  margin-bottom: 8px;

  color: #334155;

  font-size: 13px;

  font-weight: 700;
}

/* =========================================
   MODERN INPUT
========================================= */

.modern-input {
  display: flex;
  align-items: center;

  width: 100%;
  height: 54px;

  overflow: hidden;

  border: 1px solid #dbe3ef;

  border-radius: 13px;

  background: #fff;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.modern-input:focus-within {
  border-color: #3b82f6;

  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.09);
}

.input-icon {
  width: 54px;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  color: #94a3b8;

  font-size: 17px;
}

.modern-input:focus-within .input-icon {
  color: #2563eb;
}

.modern-input input {
  flex: 1;

  min-width: 0;

  width: 100%;
  height: 100%;

  padding: 0 12px 0 0;

  border: 0;
  outline: 0;

  color: #1e293b;

  font-size: 14px;

  background: linear-gradient(to right, rgba(219, 234, 254, 0.65), rgba(219, 234, 254, 0.65));
}

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

.toggle-pin {
  width: 52px;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border: 0;

  color: #94a3b8;

  background: linear-gradient(to right, rgba(219, 234, 254, 0.65), rgba(219, 234, 254, 0.65));

  cursor: pointer;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.toggle-pin:hover {
  color: #2563eb;

  background: #eff6ff;
}

/* =========================================
   REMEMBER ME
========================================= */

.form-options {
  margin: 3px 0 24px;
}

.remember-option {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  cursor: pointer;

  color: #64748b;

  font-size: 13px;
  font-weight: 500;
}

.remember-option input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.custom-check {
  width: 20px;
  height: 20px;

  position: relative;

  display: inline-block;

  border: 1px solid #cbd5e1;

  border-radius: 6px;

  background: #fff;

  transition: all 0.2s ease;
}

.remember-option input:checked + .custom-check {
  border-color: #2563eb;

  background: #2563eb;
}

.remember-option input:checked + .custom-check::after {
  content: "";

  position: absolute;

  left: 6px;
  top: 3px;

  width: 5px;
  height: 9px;

  border: solid #fff;

  border-width: 0 2px 2px 0;

  transform: rotate(45deg);
}

/* =========================================
   LOGIN BUTTON
========================================= */

.login-button {
  width: 100%;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  border: 0;

  border-radius: 13px;

  background: linear-gradient(135deg, #2563eb, #4f46e5);

  color: #fff;

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.22);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.login-button i {
  font-size: 18px;

  transition: transform 0.2s ease;
}

.login-button:hover {
  transform: translateY(-2px);

  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.login-button:hover i {
  transform: translateX(4px);
}

.login-button:active {
  transform: translateY(0);
}

/* =========================================
   FOOTER
========================================= */

.login-footer {
  margin-top: 24px;

  text-align: center;
}

.footer-divider {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 15px;

  color: #94a3b8;

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  font-weight: 700;
}

.footer-divider::before,
.footer-divider::after {
  content: "";

  flex: 1;

  height: 1px;

  background: #e5eaf1;
}

.footer-divider span {
  display: inline-flex;

  align-items: center;

  gap: 5px;
}

.login-footer p {
  margin: 0;

  color: #94a3b8;

  font-size: 11px;

  line-height: 1.7;
}

.login-footer a {
  color: #2563eb;

  font-weight: 600;

  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

.footer-and {
  margin: 0 5px;

  color: #cbd5e1;
}

/* =========================================
   LARGE SCREENS
========================================= */

@media (min-width: 1600px) {
  .login-main {
    padding: 16px 34px;
  }

  .login-left {
    padding: 55px 44px 0;
  }

  .brand-header {
    margin-bottom: 48px;
  }

  .hero-title {
    font-size: 4.8rem;
  }

  .hero-illustration {
    width: 620px;
    max-height: 300px;
  }
}

/* =========================================
   MEDIUM DESKTOP
========================================= */

@media (max-width: 1300px) {
  .login-main {
    padding: 12px 24px;
  }

  .login-wrapper {
    height: calc(100dvh - 24px);
  }

  .login-left {
    padding: 42px 36px 0;
  }

  .login-right {
    min-width: 450px;

    padding: 25px 45px;
  }

  .brand-logo-text {
    max-width: 280px;
  }

  .brand-header {
    margin-bottom: 35px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 4vw, 4rem);
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-features {
    max-width: 430px;
  }

  .hero-illustration-wrapper {
    height: 250px;
  }

  .hero-illustration {
    max-height: 245px;
  }

  .login-card {
    max-width: 500px;

    padding: 32px 36px;
  }
}

/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 991px) {
  html,
  body {
    overflow: auto;
  }

  .login-main {
    min-height: 100dvh;

    height: auto;

    padding: 16px;

    overflow: visible;
  }

  .login-wrapper {
    min-height: calc(100dvh - 32px);

    height: auto;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 26px;

    overflow: visible;
  }

  .login-left {
    display: none;
  }

  .login-right {
    width: 100%;

    min-width: unset;

    padding: 20px;
  }

  .login-card {
    width: 100%;

    max-width: 480px;

    padding: 30px 24px;

    border-radius: 22px;
  }

  .brand-img-mobile {
    width: 62px;

    height: 62px;
  }

  .login-header {
    margin-bottom: 28px;
  }

  .login-header h2 {
    font-size: 27px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {
  .login-main {
    padding: 10px;
  }

  .login-wrapper {
    min-height: calc(100dvh - 20px);

    border-radius: 20px;
  }

  .login-right {
    padding: 12px;
  }

  .login-card {
    padding: 25px 18px;

    border-radius: 18px;
  }

  .brand-img-mobile {
    width: 56px;

    height: 56px;
  }

  .sidebar-logo {
    margin-bottom: 18px !important;
  }

  .login-header {
    margin-bottom: 24px;
  }

  .login-header h2 {
    font-size: 25px;
  }

  .login-header p {
    font-size: 13px;
  }

  .modern-input {
    height: 52px;
  }

  .login-button {
    height: 54px;
  }

  .login-footer {
    margin-top: 20px;
  }
}

/* =========================================
   VERY SHORT SCREENS
========================================= */

@media (max-height: 700px) and (min-width: 992px) {
  .login-main {
    padding-top: 8px;

    padding-bottom: 8px;
  }

  .login-wrapper {
    height: calc(100dvh - 16px);
  }

  .login-left {
    padding-top: 30px;
  }

  .brand-header {
    margin-bottom: 25px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-features {
    margin-top: 14px;
  }

  .hero-illustration-wrapper {
    height: 210px;
  }

  .hero-illustration {
    max-height: 205px;
  }

  .login-card {
    padding: 25px 32px;
  }

  .login-header {
    margin-bottom: 22px;
  }

  .login-form .form-group {
    margin-bottom: 15px;
  }

  .login-footer {
    margin-top: 18px;
  }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 991px) {
  .login-right {
    background-color: transparent !important;
  }

  .login-card {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }
}
