/* =========================================================
   1. GLOBAL
========================================================= */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: "Google Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* =========================================================
   2. MAIN LAYOUT
========================================================= */
.main-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  background-color: #f0f2f5;
  padding: 20px;
}

.login-unified-card {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 850px;
  min-height: 450px;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* =========================================================
   3. LEFT BANNER
========================================================= */
.login-banner {
  width: 45%;
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.banner-image {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: contain;
  display: block;
}

/* =========================================================
   4. RIGHT CONTENT 
========================================================= */
.login-content {
  width: 55%;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-content-inner {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   5. SIGN IN / OTP CARD
========================================================= */
.auth-card-wrap {
  width: 100%;
}

.auth-card {
  width: 100%;
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.auth-card h3 {
  color: #1a1a1a;
  font-size: 26px;
}

/* =========================================================
   6. INPUTS & BUTTONS
========================================================= */
.custom-input {
  min-height: 50px;
  border-radius: 8px;
  border: 1.5px solid #e1e4e8;
  font-size: 15px;
  transition: all 0.2s;
}

.custom-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.custom-btn {
  min-height: 50px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  background-color: #0d6efd;
  border: none;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.custom-btn:hover {
  background-color: #0b5ed7;
}

.custom-btn:active {
  transform: scale(0.98);
}

/* =========================================================
   7. OTP 
========================================================= */
.letter-spacing-3 {
  letter-spacing: 0.75rem;
}

#otpInput {
  font-variant-numeric: tabular-nums;
}

#resendOtpLink {
  color: #0d6efd;
  transition: color 0.2s;
}

#resendOtpLink:hover {
  color: #0043a8;
  text-decoration: underline !important;
}

/* =========================================================
   8. MODAL 
========================================================= */
.custom-modal {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* บังคับให้พื้นหลังสีฟ้าโค้งตามกรอบ Modal */
}

/* ตกแต่งส่วนหัวของ Modal */
.custom-modal-header {
  background-color: #0d6efd; /* สีฟ้าเดียวกับปุ่ม Submit */
  color: #ffffff; /* ตัวหนังสือสีขาว */
  border-bottom: 4px solid #0b5ed7; /* เส้นขีดคั่นสีฟ้าเข้มด้านล่าง */
  padding: 16px;
}

/* =========================================================
   9. RESPONSIVE (MOBILE)
========================================================= */
@media (max-width: 768px) {
  html,
  body {
    overflow: auto;
  }

  .main-screen {
    height: auto;
    min-height: 100vh;
  }

  .login-unified-card {
    flex-direction: column;
    height: auto;
    max-width: 440px;
  }

  .login-banner {
    width: 100%;
    height: 180px;
    padding: 30px;
  }

  .login-content {
    width: 100%;
    padding: 40px 25px;
  }
}
