/* ===================================================
   GOOGLE FONT
=================================================== */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* ===================================================
   ROOT COLORS
=================================================== */

:root {
  --bg: #1f1f22;
  --panel: #1f1f22;
  --input: #242428;
  --border: #444549;
  --text: #ffffff;
  --placeholder: #a7adb8;
  --login: #214d89;
  --login-hover: #2d63ab;
  --blue: #4ba9fe;
  --divider: #444549;
  --footer: #9fa5ae;
}

/* ===================================================
   RESET
=================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  min-height: 100vh;

  background: #1f1f22;

  color: white;

  overflow-x: hidden;
}

/* ===================================================
   MAIN CONTAINER
=================================================== */

.container {
  display: flex;

  width: 100%;

  min-height: calc(100vh - 88px);
}

/* ===================================================
   LEFT SIDE
=================================================== */

.left-section {
  width: 59%;

  min-height: 100vh;

  background: #0c0f14;

  border-right: 1.5px solid #4b4d52;

  display: flex;

  flex-direction: column;

  justify-content: flex-start;

  align-items: center;

  padding: 34px 56px 28px;
}

.logo {
  width: 62px;

  height: auto;

  margin-bottom: 24px;

  align-self: flex-start;
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  align-items: center;

  font-size: 32px;

  line-height: 1.12;

  font-weight: 400;

  letter-spacing: -2px;

  max-width: 580px;

  color: #ffffff;
}

.hero-text h2 {
  align-items: center;

  margin-top: 14px;

  font-size: 35px;

  font-weight: 400;

  letter-spacing: 0.1px;

  background: linear-gradient(90deg, #ed5c38 35%, #d81071 60%, #ba47f8 72%);

  background-size: 140% 100%;

  background-position: center;

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  color: transparent;
}

.white-dot {
  color: #ffffff;

  -webkit-text-fill-color: #ffffff;

  background: none;
}

.hero-image {
  width: 300px;

  max-width: 100%;

  margin-top: 22px;
}

/* ===================================================
   RIGHT SIDE
=================================================== */

.right-section {
  width: 43%;

  min-height: 100vh;

  background: #1f1f22;

  display: flex;

  justify-content: flex-start;

  align-items: center;

  padding: 24px 54px;
}

.login-box {
  width: 100%;

  max-width: 560px;
}

.login-box h3 {
  font-size: 16px;

  font-weight: 500;

  margin-bottom: 20px;

  line-height: 1.12;
}

/* ===================================================
   INPUTS
=================================================== */

.input-group {
  position: relative;

  margin-bottom: 10px;
}

.input-group input {
  width: 100%;

  height: 48px;

  background: #1f1f22;

  border: 1px solid #45464b;

  border-radius: 12px;

  outline: none;

  color: #ffffff;

  font-size: 13px;

  padding: 22px 15px 6px;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.input-group input::placeholder {
  color: transparent;
}

.input-group input:focus {
  border: 1px solid #9c9fa5;

  box-shadow: 0 0 0 1px rgba(141, 143, 148, 0.15);
}

.input-group input:hover {
  border-color: #9c9fa5;
}

/* ===========================
   FLOATING LABEL
=========================== */

.input-group label {
  position: absolute;

  left: 15px;

  top: 50%;

  transform: translateY(-50%);

  color: #a7adb8;

  font-size: 13px;

  font-weight: 400;

  pointer-events: none;

  transition:
    top 0.18s ease,
    transform 0.18s ease,
    font-size 0.18s ease,
    color 0.18s ease;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: 5px;

  transform: none;

  font-size: 10px;

  color: #a2a5a8;
}

/* ==============================
   PASSWORD TOGGLE
============================== */

.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;

  right: 10px;

  top: 50%;

  transform: translateY(-50%);

  width: 34px;

  height: 34px;

  border: none;

  background: none;

  cursor: pointer;

  display: flex;

  justify-content: center;

  align-items: center;

  color: #ffffff;

  opacity: 0;

  visibility: hidden;

  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    color 0.25s ease;
}

.toggle-password.show {
  opacity: 1;

  visibility: visible;
}

.toggle-password:hover {
  color: #d6d6d6;
}

.toggle-password i {
  font-size: 13px;
}

/* ===================================================
   BUTTONS
=================================================== */

.login-btn {
  margin-top: 10px;
  width: 100%;

  height: 35px;

  border: none;

  border-radius: 35px;

  background: #1e5fbb;

  color: #8ea1b8;

  font-size: 13px;

  font-weight: 500;

  cursor: not-allowed;

  transition: all 0.25s ease;

  background: #214d89;

  color: #8ea1b8;

  transition: all 0.25s ease;
}

.login-btn:disabled {
  background: #143a70;

  color: #6f8096;

  cursor: not-allowed;
}

.login-btn.enabled {
  background: #1b74e4;

  color: #ffffff;

  cursor: pointer;
}

.login-btn.enabled:hover {
  background: #1877f2;
}

/* ==============================
   FORGOT PASSWORD
============================== */

.forgot {
  display: flex;

  justify-content: center;

  align-items: center;

  width: 100%;

  height: 35px;

  margin: 10px 0;

  background: transparent;

  color: #ffffff;

  font-size: 13px;

  font-weight: 500;

  text-decoration: none;

  border-radius: 35px;

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;

  box-sizing: border-box;
}

.forgot:hover {
  background: #333437;

  color: #ffffff;

  text-decoration: none;
}

.forgot:active {
  background: #313136;
}

.forgot:focus-visible {
  outline: 2px solid #ffffff;

  outline-offset: 2px;
}

.divider {
  width: 100%;

  height: 1px;

  background: var(--divider);

  margin-top: 20px;

  margin-bottom: 20px;
}

/* ===================================================
   FACEBOOK BUTTON
=================================================== */

.facebook {
  width: 100%;

  height: 35px;

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 9px;

  border: 1px solid #444549;

  border-radius: 35px;

  background: transparent;

  color: #ffffff;

  font-size: 13px;

  font-weight: 500;

  cursor: pointer;

  transition: 0.3s;

  margin-bottom: 10px;
}

.facebook i {
  color: #1877f2;

  font-size: 13px;

  line-height: 1;

  display: flex;

  align-items: center;

  justify-content: center;
}

.facebook:hover {
  background: #333437;
}

/* ===================================================
   CREATE ACCOUNT
=================================================== */

.create {
  width: 100%;

  height: 35px;

  border-radius: 35px;

  background: transparent;

  border: 1px solid #2f80ed;

  color: #2f80ed;

  font-size: 13px;

  font-weight: 500;

  cursor: pointer;

  transition: 0.25s;
}

.create:hover {
  background: #333437;

  color: #2f80ed;
}

/* ===================================================
   META
=================================================== */

.meta {
  margin-top: 15px;

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 4px;

  color: #ffffff;

  font-size: 13px;

  font-weight: 500;
}

.meta-logo {
  width: 15px;

  height: auto;

  display: block;
}

/* ===================================================
   FOOTER
=================================================== */

footer {
  width: 100%;

  background: #0c0f14;

  border-top: 0.9px solid #989595;

  padding: 20px 10px;
}

.footer-links {
  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  gap: 18px;
}

.footer-links a {
  position: relative;

  text-decoration: none;

  color: var(--footer);

  font-size: 13px;

  font-weight: 400;

  line-height: 1;

  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #989595;

  text-decoration: underline;

  text-decoration-thickness: 1px;

  text-underline-offset: 1px;
}

.footer-links a:active {
  opacity: 0.75;
}

.footer-links a:focus-visible {
  outline: 2px solid #ffffff;

  outline-offset: 3px;

  border-radius: 2px;
}

.footer-bottom {
  display: flex;

  justify-content: center;

  gap: 25px;

  margin-top: 18px;

  color: #989595;

  font-size: 13px;
}

/* ===================================================
   SCROLLBAR
=================================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #4b4d52;

  border-radius: 20px;
}

::-webkit-scrollbar-track {
  background: #1f1f22;
}

/* ===================================================
   TABLET
=================================================== */

@media (max-width: 1100px) {
  .left-section {
    width: 50%;
  }

  .right-section {
    width: 50%;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-text h2 {
    font-size: 45px;
  }

  .hero-image {
    width: 390px;
  }
}

/* ===================================================
   MOBILE
=================================================== */

@media (max-width: 850px) {
  .container {
    flex-direction: column;
  }

  .left-section {
    width: 100%;

    border-right: none;

    border-bottom: 1px solid #35363a;

    min-height: auto;

    padding: 45px 20px;
  }

  .right-section {
    width: 100%;

    min-height: auto;

    padding: 45px 20px;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .hero-text h2 {
    font-size: 38px;
  }

  .hero-image {
    width: 300px;
  }

  .login-box h3 {
    text-align: center;
  }
}

/* ===================================================
   SMALL MOBILE
=================================================== */

@media (max-width: 550px) {
  .logo {
    width: 70px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-text h2 {
    font-size: 30px;
  }

  .hero-image {
    width: 250px;
  }

  .input-group input {
    height: 58px;

    font-size: 16px;
  }

  .login-btn {
    height: 56px;

    font-size: 18px;
  }

  .facebook {
    height: 56px;

    font-size: 17px;
  }

  .create {
    height: 56px;

    font-size: 17px;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 8px;

    align-items: center;

    font-size: 12px;
  }
}

.page-footer {
  display: flex;
}

.page-footer footer {
  width: 100%;
}

/* ==========================================
   INSTAGRAM SPLASH SCREEN
========================================== */

#splash-screen {
  position: fixed;
  inset: 0;
  background: #0c0f14;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

#splash-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* ← ADDED: Prevents blocking clicks */
}

.splash-logo {
  width: 58px;
  height: auto;
}

.splash-meta {
  position: absolute;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.from-text {
  color: #6d7078;
  font-size: 12px;
  font-weight: 450;
}

.splash-meta-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.splash-meta-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.splash-meta-text {
  font-size: 16px;
  font-weight: 450;
  font-family: "Inter", sans-serif;
  background: linear-gradient(
    90deg,
    #ff7a1f 0%,
    #ff6a2f 1%,
    #ff4f6d 5%,
    #ff2d8f 22%,
    #f218a8 48%,
    #df1fc8 92%,
    #b548ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==========================================
   FADE ANIMATION FOR SECTIONS (ADDED)
========================================== */
.left-section,
.right-section {
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
