/* auth.css */
/* কাজ: এই ফাইলটিতে লগইন, রেজিস্ট্রেশন এবং পাসওয়ার্ড স্ক্রিনের সমস্ত স্টাইল থাকবে। */

/* Authentication স্ক্রিনের মূল কন্টেইনার */
.auth-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  width: 100%;
  background-color: #fff;
}

/* প্রতিটি ধাপের (মোবাইল, পাসওয়ার্ড, রেজিস্টার) জন্য সাধারণ স্টাইল */
.auth-step {
  width: 100%;
  height: 100%;
  display: none; /* ডিফল্টভাবে লুকানো থাকবে */
  flex-direction: column;
}

/* প্রথম ধাপটি দেখানোর জন্য */
#step-mobile-input {
  display: flex;
}

.auth-header {
  width: 100%;
  flex-shrink: 0;
}

.auth-body {
  padding: 20px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  box-sizing: border-box;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.auth-body h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 25px;
  color: #333;
}

#step-password-input h2, #step-register-form h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* ইনপুট ফিল্ডের গ্রুপ */
.input-group {
  position: relative;
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 15px 12px 50px;
}

.input-group:focus-within {
  border-color: #dc3545;
  box-shadow: 0 0 0 1px #dc3545;
}

.input-group i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 18px;
}

.input-group input {
  width: 100%;
  border: none;
  font-size: 16px;
  background-color: transparent;
  outline: none;
}

.input-group input[readonly] {
  background-color: #f0f0f0;
}

.auth-note {
  font-size: 14px;
  color: #6c757d;
  margin-top: -10px;
  margin-bottom: 20px;
}

/* Auth স্ক্রিনের বাটন */
.auth-btn {
  width: 100%;
  padding: 14px;
  background: #fce6e8;
  color: #dc3545;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-top: auto;
  transition: background 0.3s;
}

.auth-btn:hover {
  background: #f9d1d5;
}

.auth-terms {
  font-size: 12px;
  color: #6c757d;
  text-align: center;
  margin-top: 15px;
}

.auth-back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 20px;
  color: #333;
  text-decoration: none;
}

.auth-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #007bff;
  text-decoration: none;
}

#password-prompt-message {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  text-align: center;
}

/* ভাষা পরিবর্তনের সুইচ */
.language-switch-auth {
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-shrink: 0;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.language-switch-auth span {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 5px;
  background: #f1f1f1;
}

.language-switch-auth img {
  width: 24px;
  height: 16px;
  margin-right: 5px;
}

/* --- পরিবর্তন শুরু: লগইন পেজের স্লাইডশোর জন্য নতুন CSS --- */

/* ======================== মূল পরিবর্তন শুরু ======================== */
/* লগইন স্ক্রিনের বিজ্ঞাপনের জন্য নির্দিষ্ট স্টাইল */
.auth-header .advertisement-banner {
  width: 100%;
  min-height: 200px;
  background-color: #f0f0f0; /* Placeholder color */
  position: relative;
  overflow: hidden;
  /* home.css থেকে আসা margin এবং border-radius রিসেট করা হয়েছে */
  margin: 0;
  border-radius: 0;
  border: none;
}
/* ======================== মূল পরিবর্তন শেষ ======================== */

.auth-header .ad-slides-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.auth-header .ad-slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px; /* একটি নির্দিষ্ট উচ্চতা দেওয়া হলো */
}

/* ======================== মূল পরিবর্তন শুরু ======================== */
.auth-header .ad-slide img, .auth-header .ad-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ছবিটি যেন কন্টেইনারে ফিট হয়ে যায় */
  /* home.css থেকে আসা border-radius রিসেট করা হয়েছে */
  border-radius: 0;
}
/* ======================== মূল পরিবর্তন শেষ ======================== */


.auth-header .ad-dots-container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.auth-header .ad-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.auth-header .ad-dot.active {
  background-color: #000;
}

/* --- পরিবর্তন শেষ --- */