:root {
  /* Base / Neutral */
  --bg: #fff4ec;
  --card: #ffffff;
  --muted: #6b5e4b;
  --text: #f6ebdd;
  --text2: #4b3b2a;

  /* Primary Accent */
  --accent: #a9734b;
  --accent-light: #d4a077;

  /* Pink Highlights */
  --pink: #ff8b94;
  --pink-light: #ffc4c8;

  /* Gradients */
  --glow1: linear-gradient(90deg, #ff9c6b, #ffc4a3);
  --glow2: linear-gradient(90deg, #ff8b94, #ffc4c8);

  /* Modal & Sidebar */
  --modal-input-border: #ffd9cc;
  --modal-input-bg: #fff7f5;
  --modal-input-focus-bg: #fff0f2;

  /* Shadows */
  --shadow-modal: rgba(0,0,0,0.2);
  --shadow-btn-details: rgba(168,124,95,0.3);
}

/* =========== Container =========== */
* { box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../img/background_paws.png") no-repeat center top / cover;
  opacity: 0.04;
  z-index: -1;
  pointer-events: none;
}

.container {
  background: var(--card);
  border-radius: 12px;
  width: 900px;
  max-width: 100%;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px var(--shadow-modal);
}

/* ========== Form containers ========== */
.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
  padding: 60px 50px;
  width: 50%;
}

.sign-in-container { left: 0; z-index: 2; }
.sign-up-container { left: 0; opacity: 0; z-index: 1; }

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

form h2 { color: var(--accent); margin-bottom: 20px; }
form input {
  background: var(--modal-input-bg);
  border: 1px solid var(--modal-input-border);
  padding: 12px 15px;
  width: 100%;
  margin: 8px 0;
  border-radius: 8px;
}
form input:focus { background: var(--modal-input-focus-bg); outline: none; }

form button {
  border: none !important;
  border-radius: 12px;
  padding: 12px 45px;
  margin-top: 20px;
  background: var(--pink)!important;
  color: var(--card);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 5px 15px var(--shadow-btn-details);
  margin-bottom: 20px;
}
form button:hover { background: var(--pink-light); filter: brightness(1.05); }

/* ========== Overlay ========== */
.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.overlay {
  background: var(--glow2);
  color: var(--card);
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
  display: flex;
}

.overlay-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 50%;
  padding: 0 40px;
}

button.ghost {
  background: transparent;
  border: 2px solid var(--card);
  border-radius: 12px;
  padding: 10px 40px;
  cursor: pointer;
  font-weight: bold;
  color: var(--card);
}

/* ========== Slide effect (desktop) ========== */
.container.right-panel-active .sign-in-container {
  transform: translateX(100%);
  opacity: 0;
  z-index: 1;
}
.container.right-panel-active .sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 2;
}
.container.right-panel-active .overlay-container {
  transform: translateX(-100%);
}
.container.right-panel-active .overlay {
  transform: translateX(50%);
}

extra-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
  }
  .extra-links a {
    color: var(--pink);
    text-decoration: none;
    margin: 0 5px;
  }
  .extra-links a:hover {
    text-decoration: underline;
  }
  .separator {
    margin: 0 5px;
    color: #555;
  }

/* ========== Mobile (CLEAN, NO TABS, NO OVERLAY) ========== */
@media (max-width: 768px) {

  .overlay-container {
    display: none !important;
  }

  .container {
    width: 95%;
    height: auto;
    min-height: auto;
    padding: 20px 0 40px;
    overflow: visible;
  }

  .form-container {
    position: relative;
    width: 100%;
    height: auto;
    padding: 40px 30px;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Show both forms stacked */
  .sign-in-container {
    display: block;
    margin-bottom: 20px;
  }

  .sign-up-container {
    display: block;
    opacity: 1;
  }
}

/* Modal header */
.modal-header {
  background-color: var(--pink) !important;
  color: white !important;
}

/* Modal footer buttons */
.modal-footer .btn-secondary {
  background-color: #ccc !important;
  color: var(--pink) !important;
}

#loadingScreen lottie-player {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@media (max-width: 768px) {

  /* Hide overlay area */
  .overlay-container {
    display: none !important;
  }

  /* Container cleanup */
  .container {
    width: 95%;
    height: auto !important;
    padding: 20px 0 40px;
    overflow: visible;
    box-shadow: none;
  }

  .form-container {
    position: relative;
    width: 100%;
    height: auto;
    padding: 40px 25px;
    opacity: 1 !important;
    transform: none !important;
  }

  /* DEFAULT: SHOW LOGIN ONLY */
  .sign-in-container {
    display: block !important;
  }

  .sign-up-container {
    display: none !important;
  }

  /* WHEN RIGHT PANEL ACTIVE → SHOW SIGNUP ONLY */
  .container.right-panel-active .sign-in-container {
    display: none !important;
  }

  .container.right-panel-active .sign-up-container {
    display: block !important;
  }
}
.mobile-switch {
  text-align: center;
  margin-top: 10px;
}

.mobile-switch a {
  color: var(--pink);
  font-weight: bold;
  margin-left: 5px;
}
