/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #ffe0ec, #ffd8b5);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px; /* Prevent edge clipping on small screens */
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Split Container */
.split-container {
  display: flex;
  flex-direction: row;
  width: 90%;                /* use % so it scales with screen */
  max-width: 1200px;         /* bigger max for laptop/desktop */
  min-height: 80vh;          /* take 80% of screen height */
  height: auto;              /* allow auto growth */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  overflow: hidden;
  background-color: #fff;
}

/* Left Panel */
.left-panel {
  flex: 1;
  background: url('assets/shop-illustration.svg') center center no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.left-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}

.left-panel .overlay-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  color: #333;
}

.overlay-text h1 {
  font-size: 2rem;
  color: #c94f7c;
  margin-bottom: 0.5rem;
}

.overlay-text p {
  font-size: 1rem;
  color: #555;
}

/* Right Panel */
.right-panel {
  flex: 1;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  height: 100%;
}

.right-panel h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}

.right-panel .logo {
  width: 150px;
  height: auto;
  margin-bottom: 1rem;
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 300px;
}

/* Phone Input Styling */
.phone-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.country-code {
  background: #f1f1f1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-flag {
  width: 20px;
  height: 14px;
  margin-right: 5px;
}

.phone-input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 0 5px 5px 0;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  background-color: #fefefe;
}

/* Input Fields */
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  background-color: #fefefe;
  transition: all 0.3s ease;
}

/* Uniform Placeholder Styling */
input::placeholder,
textarea::placeholder {
  color: #aaa;
  font-style: italic;
  font-size: 1rem;
  transition: color 0.3s ease, font-size 0.3s ease;
}

/* Placeholder Focus Effect */
input:focus::placeholder,
textarea:focus::placeholder {
  color: #007bff;
  font-size: 1rem;
}

/* Focus Input Fields */
input:focus,
textarea:focus {
  border-color: #007bff;
  outline: none;
}

/* Label Styling */
label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

/* Show Password Toggle */
input[type="checkbox"] {
  margin-right: 8px;
}

/* Button Styling */
button {
  padding: 12px;
  background: linear-gradient(to right, #ff4d6d, #ff9966);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: linear-gradient(to right, #ff5e7e, #ffb88c);
}

/* Links Section */
.links {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.split-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  width: 100%;
  max-width: 300px;
}

.left-link,
.right-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: #c94f7c;
}

.left-link:hover,
.right-link:hover {
  color: #ff5e7e;
}

/* ✅ Desktop Enhancements */
@media (min-width: 1024px) {
  .overlay-text h1 {
    font-size: 2.5rem;
  }

  .overlay-text p {
    font-size: 1.2rem;
  }

  .right-panel h2 {
    font-size: 2rem;
  }

  form {
    max-width: 400px;
  }
}

/* ✅ Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
    height: auto;
    width: 100%;
    max-width: none;
  }

  .left-panel,
  .right-panel {
    flex: none;
    width: 100%;
    padding: 1.5rem;
  }

  .left-panel {
    border-bottom: 1px solid #eee;
    min-height: 250px;
  }

  .overlay-text h1 {
    font-size: 1.2rem;
  }

  .overlay-text p {
    font-size: 0.8rem;
  }

  .right-panel h2 {
    font-size: 1.4rem;
  }

  form {
    max-width: 100%;
    width: 100%;
  }

  .right-panel .logo {
    width: 120px;
  }

  .split-links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .left-panel, .right-panel {
    overflow: hidden;
  }
}

/* Prevent over-zoom on mobile */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  body {
    overflow-x: hidden;
    padding: 0;
  }

  .split-container {
    height: 100%;
    width: 100%;
    max-width: none;
  }
}
