/*
Theme Name: Codebyday
Theme URI: https://tncthemes.com
Author: Codebyday
Author URI: https://tncthemes.com
Description: Theme Codebyday - Trang đăng ký/landing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codebyday
*/

:root {
  --bg-deep: #020b1a;
  --bg-mid: #041230;
  --text-tagline: #fff;
  --accent-blue: #00d4ff;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-gold: #fbbf24;
  --accent-cyan: #06b6d4;
  --neon-blue: #3b82f6;
  --text-white: #ffffff;
  --text-dim: #94a3b8;
  --border-glow: rgba(0, 212, 255, 0.5);
  --font-display: 'Orbitron', monospace;
  --font-body: 'Montserrat', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

html {
  font-size: clamp(12px, 1.5vw, 16px);
  scroll-behavior: smooth;
  overflow: hidden;

}

body {
  background: url(./assets/images/bg.webp);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-white);
  min-height: 100dvh;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.stars::before,
.stars::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  box-shadow:
      120px 80px rgba(255, 255, 255, 0.4),
      300px 200px rgba(0, 212, 255, 0.5),
      500px 150px rgba(255, 255, 255, 0.3),
      700px 300px rgba(168, 85, 247, 0.4),
      900px 100px rgba(255, 255, 255, 0.3),
      1100px 250px rgba(0, 212, 255, 0.3),
      200px 400px rgba(255, 255, 255, 0.2),
      600px 450px rgba(255, 255, 255, 0.3),
      800px 500px rgba(0, 212, 255, 0.2),
      1000px 380px rgba(255, 255, 255, 0.4),
      1300px 200px rgba(168, 85, 247, 0.3),
      50px 600px rgba(255, 255, 255, 0.2),
      400px 650px rgba(0, 212, 255, 0.3),
      1200px 600px rgba(255, 255, 255, 0.2),
      1400px 400px rgba(255, 255, 255, 0.3);
  animation: twinkle 4s infinite alternate;
}

.stars::after {
  width: 1px;
  height: 1px;
  box-shadow:
      150px 350px rgba(255, 255, 255, 0.3),
      350px 100px rgba(255, 255, 255, 0.2),
      550px 280px rgba(0, 212, 255, 0.4),
      750px 180px rgba(255, 255, 255, 0.3),
      950px 320px rgba(168, 85, 247, 0.3),
      1150px 150px rgba(255, 255, 255, 0.4),
      250px 500px rgba(0, 212, 255, 0.2),
      650px 550px rgba(255, 255, 255, 0.3),
      1050px 480px rgba(255, 255, 255, 0.2),
      1350px 300px rgba(0, 212, 255, 0.3);
  animation-delay: 2s;
  animation-duration: 6s;
}

@keyframes twinkle {
  from {
      opacity: 0.6;
  }

  to {
      opacity: 1;
  }
}

/* ───── WRAPPER ───── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 1rem 1rem 1rem;
  justify-content: start;
}

.page-wrapper img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: inline-block;
}

/* ───── SOCIAL SIDEBAR ───── */
.social-sidebar {
  position: absolute;
  right: -10%;
  top: -40%;
  /* transform: translateY(-50%); */
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 5rem;
}


.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  /* background: rgba(10, 30, 60, 0.9);
          border: 1px solid rgba(0, 212, 255, 0.3);
          border-radius: 0.5rem;
          padding: 0.5rem 0.6rem; */
  text-decoration: none;
  color: var(--text-white);
  font-size: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.social-btn:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 1rem rgba(0, 212, 255, 0.3);
  transform: translateX(-2px);
}

.social-icon {
  font-size: 1.2rem;
}

.social-btn.telegram .social-icon {
  color: #2AABEE;
}

.social-btn.fanpage .social-icon {
  color: #1877F2;
}

.social-btn.livechat .social-icon {
  color: var(--accent-cyan);
}

/* ───── LOGO + HEADER ───── */
.header {
  text-align: center;
  margin-bottom: 0.5rem;
  animation: fadeDown 0.6s ease both;
}

@keyframes fadeDown {
  from {
      opacity: 0;
      transform: translateY(-1.5rem);
  }

  to {
      opacity: 1;
      transform: translateY(0);
  }
}


.logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 0.4rem;
  max-width: 40rem;
  width: 10rem;
}

.logo-text-win {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 30%, #fcd34d 60%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  filter: drop-shadow(0 0 0.5rem rgba(251, 191, 36, 0.5));
}

.logo-text-79 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #f87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 0.5rem rgba(239, 68, 68, 0.5));
}

.logo-diamond {
  position: absolute;
  top: -0.3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.6rem;
  height: 0.6rem;
  background: var(--accent-blue);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
      box-shadow: 0 0 0.3rem var(--accent-blue);
      transform: translateX(-50%) scale(1);
  }

  50% {
      box-shadow: 0 0 0.8rem var(--accent-blue);
      transform: translateX(-50%) scale(1.2);
  }
}

.tagline {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-tagline, #fff);
  text-transform: uppercase;
  text-shadow: 0 0 1rem rgba(0, 212, 255, 0.5);
}

/* ───── PROMO BANNER ───── */
.promo-section {
  text-align: center;
  margin-bottom: 1.2rem;
  animation: fadeDown 0.6s 0.15s ease both;
  width: 30rem;
  max-width: 30vw;
}

/* ───── MAIN LAYOUT ───── */
.main-content {
  position: relative;
  width: 100%;
  max-width: 80%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  animation: fadeDown 0.6s 0.3s ease both;
}

/* ───── PHONE MOCKUP ───── */
.phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-right: 0.5rem;
}

.phone-mockup {
  position: relative;
  width: 12rem;
  filter: drop-shadow(0 0 2rem rgba(59, 130, 246, 0.4));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
      transform: translateY(0);
  }

  50% {
      transform: translateY(-0.8rem);
  }
}

.phone-frame {
  width: 100%;
  background: linear-gradient(145deg, #1a2a4a, #0d1a35);
  border-radius: 2rem;
  border: 2px solid rgba(59, 130, 246, 0.5);
  overflow: hidden;
  box-shadow:
      0 0 0 1px rgba(0, 212, 255, 0.1),
      0 2rem 4rem rgba(0, 0, 0, 0.5),
      inset 0 0 2rem rgba(59, 130, 246, 0.05);
  padding: 0.6rem;
}

.phone-screen {
  background: linear-gradient(160deg, #041230, #020b1a);
  border-radius: 1.4rem;
  overflow: hidden;
  padding: 0.8rem 0.6rem;
}

.phone-win79-logo {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
}


/* ───── FORM PANEL ───── */
.form-panel {
  background-image: url(./assets/images/reg_box_2.webp);
  background-size: cover;
  background-position: center;
  /* border: 1.5px solid var(--border-glow);
          border-radius: 1rem;
          padding: 1.5rem 1.2rem;
          backdrop-filter: blur(20px);
          box-shadow:
              0 0 2rem rgba(0, 212, 255, 0.1),
              0 0 5rem rgba(59, 130, 246, 0.05),
              inset 0 0 2rem rgba(0, 50, 100, 0.1); */
  position: relative;
  overflow: hidden;
  aspect-ratio: 400/340;
  transition: all 0.5s linear;
}

.form-group {
  position: absolute;
  top: 33%;
  left: 0;
  width: 100%;
  padding: 0 2rem;
  aspect-ratio: 450 / 160;
  transition: all 0.5s linear;
}

.input-group {
  position: relative;
  margin-bottom: 4.5%;
}

/* Nếu .input-group có một thẻ .errors ngay phía sau, thì bỏ margin-bottom */
/* .register-form .input-group:has(+ .errors) {
    margin-bottom: 0 !important;
} */

.input-icon {
  position: absolute;
  left: 1.2rem;
  top: 55%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--accent-blue);
  pointer-events: none;
  width: 1rem;
  aspect-ratio: 1/1;
}

.text-error {
  color: red;
  font-weight: 700;
  font-size: 0.7rem;
  position: absolute;
  bottom: -.9rem;
  width: 100%;
  left: 0;
  text-align: center;
}

.form-input {
  width: 100%;
  background: rgba(20, 0, 0, 0.8);
  border: 1px solid #fff;
  border-radius: 2rem;
  padding: 0 2.5rem 0 3.5rem;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  outline: none;
  transition: all 0.25s;
  letter-spacing: 0.03em;
  /* height: 2.5rem; */
  aspect-ratio: 390 / 50;
}

.form-input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 1rem rgba(0, 212, 255, 0.2), inset 0 0 0.5rem rgba(0, 212, 255, 0.05);
  background: rgba(0, 10, 30, 0.9);
}

.form-input.input-error {
  border-color: red;
}

.input-toggle {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(148, 163, 184, 0.6);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 0;
}

.form-btn {
  position: absolute;
  bottom: -47%;
  left: 52%;
  transform: translateX(-50%);
  width: 50%;
  height: 45%;
  background-color: transparent !important;
  border: none !important;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 5rem;
  overflow: hidden;
}


/* ───── INFO PANEL ───── */
.info-panel {
  /* background: rgba(5, 15, 40, 0.85); */
  /* border: 1px solid rgba(0, 212, 255, 0.2); */
  /* border-radius: 0.8rem; */
  /* padding: 1.2rem; */
  /* backdrop-filter: blur(10px);
   box-shadow: 0 0 1.5rem rgba(0, 50, 100, 0.3); */
  display: block;
  margin-left: 2rem;
  border: 0;
}

.info-panel-box {
  width: 100%;
}


/* ───── DOTS INDICATOR ───── */
.swiper-pagination {
  position: relative;
  margin-top: 24px;
}

.swiper-pagination-bullet {
  width: 15px;
  height: 15px;
  background-color: #3e48db;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: #96fefe;
}

/* ───── FLOATING CHIPS ───── */
.floating-chip {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  font-size: 1.5rem;
  animation: driftUp 12s linear infinite;
}

.fc1 {
  left: 5%;
  animation-delay: 0s;
  animation-duration: 14s;
}

.fc2 {
  left: 15%;
  animation-delay: 3s;
  animation-duration: 10s;
}

.fc3 {
  left: 85%;
  animation-delay: 6s;
  animation-duration: 16s;
}

.fc4 {
  left: 92%;
  animation-delay: 9s;
  animation-duration: 12s;
}

@keyframes driftUp {
  0% {
      bottom: -5%;
      opacity: 0;
      transform: rotate(0deg);
  }

  10% {
      opacity: 0.15;
  }

  90% {
      opacity: 0.1;
  }

  100% {
      bottom: 105%;
      opacity: 0;
      transform: rotate(360deg);
  }
}


.swiper {
  max-width: 100%;
}

.banner-mb {
  max-width: 70%;
  display: none;
}

.banner-mb img {
  max-width: 100%;
}


.register-panel {
  border-radius: 20px;
  background: linear-gradient(160deg,
          rgba(255, 255, 255, 0) 0%,
          rgba(255, 255, 255, 0) 50%,
          rgba(60, 80, 200, 0.85) 100%);
  border: 2px solid rgba(150, 180, 255, 0.8);
  box-shadow:
      0 0 10px rgba(100, 150, 255, 0.6),
      0 0 25px rgba(100, 150, 255, 0.4),
      0 0 60px rgba(80, 120, 255, 0.25),
      0 0 100px rgba(60, 100, 240, 0.15),
      inset 0 0 30px rgba(120, 160, 255, 0.08);
  padding: 15% 10% 10%;
  position: relative;
  margin-bottom: 7.5%;
  width: 100%;
  box-sizing: border-box;
}

.register-logo {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -55%);
  width: 50%;
}

.register-btn {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 80%;
  transform: translate(-50%, -50%);
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
	cursor: pointer;
}

/* jQuery Validate: đặt lỗi sau .input-group (JS) — giữ hàng icon + input + toggle một hàng cố định */
.register-form .input-group {
  display: block;
}

.register-form .input-icon {
  top: 50%;
  transform: translateY(-50%);
}

.register-form .input-group + div.errors {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  padding-left: 0.35rem;

/*   margin-top: 0.2rem;
  margin-bottom: 0.2rem;
 */
/* Kỹ thuật quan trọng: */
    margin-top: -3.5%;    /* Kéo thẻ lỗi lên trên, đè vào khoảng trống của margin-bottom phía trên */
    margin-bottom: 2%;    /* Tạo một khoảng cách nhỏ bên dưới thẻ lỗi */
    position: relative;   /* Đảm bảo nó hiển thị trên nền */
    z-index: 1;
}
/* 3. Đảm bảo khi thẻ lỗi ẩn đi (không có nội dung), nó không chiếm chỗ */
.register-form .errors:empty {
    display: none;
}

/* Modal thông báo lỗi (AJAX đăng ký) — theo flatsome-child/custom.css */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
  opacity: 0;
  transition: opacity 0.15s linear;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
}

.modal-dialog {
  position: relative;
  width: 500px;
  max-width: 90%;
  top: 50%;
  margin: 0 auto;
  pointer-events: none;
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  border-radius: 0.3rem;
  outline: 0;
  padding: 20px 15px;
  background-color: #000;
  border: 2px solid #fff;
}

.modal-title {
  width: 100%;
  display: inline-block;
  color: #f2e200;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
}

.modal-body {
  color: #fff;
  line-height: 1.3;
  padding: 1rem 0;
	text-align: center;
}

.modal-content .close {
  position: absolute;
  right: -4%;
  bottom: 104%;
  z-index: 2;
  color: #f2e200;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 1300px) {
  .social-sidebar {
      display: none;
  }
}

@media (min-width: 1280px) {
  .page-wrapper {
      align-items: center;
      justify-content: center;
      height: 100dvh;
  }

  .main-content {
      margin-top: 2rem;
  }
}

@media (min-width: 991px) {
  .main-content {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
      align-items: end;
  }
}

@media (min-width: 1000px) and (max-width: 1280px) {
  .main-content {
      max-width: 65rem;
  }
}

@media (max-width: 990px) {
  .page-wrapper {
      padding-top: 1rem;
  }

  .phone-col {
      display: none;
  }

  /* .logo-wrapper {
      width: 4rem;
  }
  .main-content {
      margin-top: 4rem;
      width: 50dvw;
      max-width: 50dvw;
  }

  .register-panel {
      width: 100%;
      max-width: 100%;
  }

  .banner-mb {
      width: 30dvw;
  } */
}

@media (max-width: 990px) and (min-height: 500px) {
  .page-wrapper {
      padding-top: 1rem;
      height: 100dvw;
      justify-content: center;
  }

  .main-content {
      width: 90dvw;
      max-width: 90dvw;
      margin-top: 4rem;
      align-items: center;
      justify-content: center;
  }

  .info-panel,
  .social-sidebar {
      display: none;
  }

  .logo-wrapper {
      width: 6rem;
  }

  .tagline {
      font-size: .6rem;
  }

  .promo-section {
      max-width: 70%;
  }

  .register-panel {
      width: 100%;
      max-width: 100%;
      padding: 4rem 1rem 3rem;
      height: auto;
      margin-bottom: 0;
      margin: 0 auto;
  }

  .input-group {
      margin-bottom: 5%;
  }

  .text-error {
      bottom: -1rem;
  }

  .banner-mb {
      display: block;
      width: calc(100dvw * 0.6);
      max-width: calc(100dvw * 0.6);
      aspect-ratio: 2/1.2;
      box-sizing: border-box;
      margin: 10% auto 0 auto;
  }

  .swiper-pagination {
      margin-top: 5%;
  }

  .swiper-pagination-bullet {
      width: 10px;
      height: 10px;
  }
}

@media (min-aspect-ratio: 820/720) {
  .banner-mb {
      display: none;
  }
}

/* ============================================================
 BỘ KHUNG RESPONSIVE THEO ASPECT-RATIO & ORIENTATION
 ============================================================ */

/* 1. ĐIỆN THOẠI - CHẾ ĐỘ DỌC (PORTRAIT) */

/* Smartphone tiêu chuẩn (iPhone SE, các dòng cũ tỉ lệ 9:16) */
@media screen and (orientation: portrait) and (max-aspect-ratio: 9/16) {}

/* Smartphone hiện đại (iPhone 12-15, Samsung S-series, tỉ lệ dài 9:19.5 hoặc 9:21) */
@media screen and (orientation: portrait) and (min-aspect-ratio: 9/19) {
  .banner-mb {
      display: block;
  }
}


/* 2. ĐIỆN THOẠI - CHẾ ĐỘ NGANG (LANDSCAPE) */

/* Smartphone xoay ngang (Thường dùng để xem video) */
@media screen and (orientation: landscape) and (max-height: 480px) {
  .page-wrapper {
      padding-top: 1rem;
  }

  .main-content {
      max-width: calc(100dvw - 20rem);
      margin: .5rem auto 0;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
      align-items: center;
  }

  .logo-wrapper {
      width: 4rem;
  }

  .tagline {
      font-size: .6rem;
  }

  .header,
  .logo-wrapper,
  .tagline {
      margin-bottom: 0;
  }

  .promo-section {
      width: 11rem;
  }

  .register-panel {
      max-width: 100%;
      padding: 2rem 1rem 1.7rem;
  }

  .input-group {
      margin-bottom: 1rem;
  }

  .register-logo {
      width: 10dvw;
  }

  .swiper-mb {
      display: none;
  }

  .swiper-pagination {
      margin-top: 1rem;
  }

  .swiper-pagination-bullet {
      width: 10px;
      height: 10px;
  }

  .phone-col,
  .info-panel {
      display: block;
  }
}

@media screen and (orientation: landscape) and (max-height: 300px) {
  .main-content {
      max-width: calc(100dvw - 30rem);
      margin: 1.5rem auto 0;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
      align-items: center;
      margin-bottom: 1rem;
  }

  .logo-wrapper {
      width: 4rem;
  }

  .tagline {
      font-size: .6rem;
  }

  .promo-section {
      width: 13rem;
  }

  .register-panel {
      padding-bottom: 1.3rem;
  }
}


@media screen and (max-width: 320px) and (max-height: 568px) and (orientation: portrait) {
  .page-wrapper {
      padding-top: 1rem;
  }

  .main-content {
      margin-top: 4rem;
      width: 90dvw;
      max-width: 90dvw;
  }

  .tagline {
      font-size: .6rem;
  }

  .promo-section {
      max-width: 14rem;
  }

  .register-panel {
      max-width: calc(100dvw - 2rem);
      width: calc(100dvw - 2rem);
      padding: 4rem 1rem 2.2rem 1rem;
  }

  .form-input {
      margin-bottom: .5rem;
  }

  .text-error {
      bottom: -.5rem;
  }

  .logo-wrapper {
      max-width: 5rem;
  }

  .banner-mb {
      display: none;
  }

  .info-panel {
      display: none;
  }
}

@media screen and (max-width: 568px) and (max-height: 320px) and (orientation:landscape) {
  .logo-wrapper {
      max-width: 5rem;
  }

  .main-content {
      max-width: calc(100dvw - 10rem);
  }

  .swiper-pagination {
      margin-top: 1rem;
  }

  .swiper-pagination-bullet {
      width: 5px;
      height: 5px;
  }
}

/* 3. MÁY TÍNH BẢNG (TABLETS) */

/* Tablet chế độ dọc (iPad, Samsung Tab - Tỉ lệ gần 3:4 hoặc 4:5) */
@media screen and (orientation: portrait) and (min-aspect-ratio: 5/7) {

  .main-content {
      margin-top: 6rem;
      max-width: calc(100dvw - 25rem);
      display: flex;
      flex-direction: column;
  }

  .register-panel {
      width: 100%;
      max-width: 100%;
      padding: 6rem 1rem 3rem;
      height: auto;
      margin-bottom: 0;
      margin: 0 auto;
  }


  .banner-mb {
      display: block;
      max-width: calc(100dvw * 0.5);
      aspect-ratio: 2/1.2;
      box-sizing: border-box;
      margin: 10% auto 0 auto;
  }

  .input-icon {
      width: 1.2rem;
  }

  .input-toggle {
      font-size: 1.2rem;
  }

}

@media screen and (orientation: portrait) and (max-aspect-ratio: 4/5) and (min-width: 600px) and (max-width: 800px) {
  .page-wrapper {
      height: 100dvw;
      justify-content: center;
  }

  .main-content {
      margin-top: 6rem;
      max-width: calc(100dvw - 25rem);
      display: flex;
      flex-direction: column;
      justify-content: center;
  }

  .register-panel {
      max-width: 100%;
      max-height: 100%;
  }

  .tagline {
      font-size: 1rem;
  }
}

@media screen and (orientation: landscape) and (min-aspect-ratio: 4/5) {
  .page-wrapper {
      padding-top: 1rem;
      justify-content: center;
  }

  .main-content {
      margin-top: 1rem;
  }

  .social-sidebar {
      display: flex;
      width: 2.5rem;
      top: -7rem;
  }

  .form-input,
  .input-toggle {
      font-size: .75rem;
  }

  .input-icon {
      width: .8rem;
  }
}

@media screen and (orientation: landscape) and (min-aspect-ratio: 4/5) and (max-width: 1200px) and (min-width: 900px) {
  .page-wrapper {
      justify-content: center;
  }
  
  .main-content {
      max-width: 60rem;
      margin: 1.5rem auto 0;
  }
  .social-sidebar {
      width: 3rem;
      display: block;
      right: -3rem;
      top: -12.5rem;
  }
}

@media screen and (orientation: landscape) and (min-aspect-ratio: 4/5) and (min-width: 1280px) {
  .social-sidebar {
      display: flex;
      top: -50%;
      width: 5rem;
  }

  .form-input, .input-toggle {
      font-size: 1.2rem;
  }
  .input-icon {
      width: 1.2rem;
  }
  .main-content {
      margin-top: 3rem;
  }
}

/* 
@media screen and (orientation: landscape) and (min-aspect-ratio: 4/5) and (min-height: 300px) and {
  
  .main-content {
      margin-top: .5rem;
      max-width: calc(100dvw - 10rem);
  }
} */

@media screen and (orientation: landscape) and (min-aspect-ratio: 21/9) and (max-width: 1280px) {
  .page-wrapper {
      padding-top: 0.5rem;
  }

  .main-content {
      margin-top: 0.75rem;
  }

}

@media screen and (orientation: landscape) and (min-aspect-ratio: 21/9) and (max-width: 950px) {
  .main-content {
      max-width: 60%;
  }
  .social-sidebar {
      position: fixed;
      right: -3rem;
      width: 2rem;
      display: flex;
      top: -7rem;
  }
}

@media screen and (orientation: landscape) and (min-aspect-ratio: 21/9) and (max-width: 880px) {
  .main-content {
      max-width: 50%;
  }
  .social-sidebar {
      position: fixed;
      right: -3rem;
      width: 2rem;
      display: flex;
      top: -7rem;
  }
}

@media screen and (orientation: landscape) and (min-aspect-ratio: 21/9) and (max-width: 850px) {
  .social-sidebar {
      position: fixed;
      position: fixed;
      right: -3rem;
      display: flex;
      top: -60%;
      width: 2rem;

  }
}


/* 4. MÁY TÍNH (DESKTOP & LAPTOP) */

/* Màn hình Widescreen phổ biến (16:9 hoặc 16:10) */
@media screen and (min-aspect-ratio: 1.6) and (max-aspect-ratio: 2/1) {}

/* Màn hình Siêu rộng (Ultrawide 21:9 hoặc 32:9) */
@media screen and (min-aspect-ratio: 21/9) {}


/* 5. MÀN HÌNH ĐỘ PHÂN GIẢI CAO (4K) */

/* Ưu tiên xử lý kích thước hiển thị cho 4K (Thường là 16:9 nhưng pixel rất lớn) */
@media screen and (min-width: 2560px) and (min-aspect-ratio: 16/9) {}


/* 
@media (orientation: landscape),
(min-width: 900px) and (max-height: 750px) {
  .swiper-mb {
      display: none;
  }
}

@media (min-height: 600px) and (max-width: 899px) {
  .swiper-mb {
      display: block;
      aspect-ratio: 2/1.2;
  }

  .swiper-mb .swiper-pagination {
      --swiper-pagination-bottom: 1.5rem;
      margin-top: 0;
  }
}

@media (max-width: 899px) {
  .page-wrapper {
      max-width: 432px;
      margin: 0 auto;
      padding: 2rem;
  }

  .form-group {
      width: 100%;
      padding: 0 2rem;
  }

  .info-panel {
      display: none;
  }

  .form-input {
      aspect-ratio: 390 / 35;
      padding-left: 3rem;
  }

  .text-error {
      font-size: 0.5rem;
      bottom: -.6rem;
  }

  .swiper-pagination-bullet {
      width: 8px;
      height: 8px;
  }
}

@media (max-width: 700px) {
  .text-error {
      font-size: 0.9rem;
      bottom: -1rem;
  }

  .form-input {
      aspect-ratio: 390 / 40;
  }
}

@media (max-width: 600px) {
  html {
      font-size: 13px;
  }

  .social-sidebar {
      display: none;
  }

  .logo-wrapper {
      max-width: 8rem;
  }

  .promo-section {
      max-width: 70vw;
  }

  .promo-amount {
      font-size: 2rem;
  }

  .form-panel {
      padding: 1.2rem 0.9rem;
  }

  .cta-btn {
      min-width: 11rem;
      padding: 0.8rem 1.8rem;
  }

  .form-group {
      top: 33%;
  }

}

@media (min-width: 601px) and (max-width: 899px) {
  html {
      font-size: clamp(12px, 1.8vw, 15px);
  }

  .main-content {
      max-width: 36rem;
  }

  .page-wrapper {
      padding: 2rem;
      justify-content: center;
  }
}

@media (max-width: 450px) {
  .text-error {
      font-size: .6rem;
      bottom: -.7rem;
  }
}

@media (max-width: 300px) {
  .tagline {
      font-size: 0.75rem;
  }

  .form-input {
      padding-left: 2rem;
  }

  .input-icon {
      width: .75rem;
  }
}

@media (min-width: 900px) and (max-width: 1439px) {
  .page-wrapper {
      padding: 2rem;
      justify-content: center;
  }

  .main-content {
      max-width: 80rem;
  }

  .promo-label {
      font-size: 1.3rem;
  }

  .promo-amount {
      font-size: 3rem;
  }
}

@media (min-width: 1440px) {
  .page-wrapper {
      width: 80vw;
      padding: 4rem 1rem 1rem 1rem;
      margin: 0 auto;
  }
}

@media (min-width: 1800px) and (min-height: 900px) {
  .page-wrapper {
      justify-content: start;
      padding-top: 6rem;
  }

  .main-content {
      max-width: 90dvw;
  }

  .input-icon {
      width: 1.5rem;
  }

  .input-toggle {
      font-size: 1.5rem;
  }
}

@media (max-height: 600px) {

  .logo-wrapper {
      max-width: 3.5rem;
      margin-bottom: 0;
  }

  .tagline {
      font-size: .4rem;
      margin-bottom: 0;
  }

  .promo-section {
      width: 10rem;
      margin-bottom: 0;
  }

  .page-wrapper {
      padding: 1rem 4rem;
  }
}

@media (max-height: 400px) and (min-width: 700px) {
  .page-wrapper {
      max-width: 90vw;
      margin: 0 auto;
  }

  .input-group {
      margin-bottom: 4.5%;
  }

  .text-error {
      font-size: .4rem;
  }

}

@media (max-height: 600px) and (min-width: 700px) {
  .page-wrapper {
      max-width: 70%;
      margin: 0 auto;
  }

  .social-sidebar {
      display: flex;
      width: 2rem;
      top: 50%;
      transform: translateY(-50%);
  }
  
  .promo-section {
      width: 9rem;
  }

  .form-group {
      padding: 0 1rem;
  }

  .input-icon {
      width: .7rem;
  }

  .input-toggle {
      font-size: .7rem;
  }

  .main-content {
      max-width: 100%;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
      align-items: end;
  }

  .phone-col,
  .info-panel {
      display: block;
  }

  .swiper-pagination {
      margin-top: .75rem;

  }
}

@media (max-height: 480px) and (max-width: 600px) {

  .logo-wrapper {
      max-width: 4rem;
      margin-bottom: 0;
  }

  .main-content {
      max-width: 22rem;
  }

  .form-group {
      padding: 0 1.5rem
  }
}

@media (max-height: 360px) and (max-width: 500px) {

  .main-content {
      max-width: 18rem;
  }

  .form-group {
      padding: 0 1rem
  }
}

@media (aspect-ratio: 320/453) {
  .swiper-mb {
      display: block;
  }

  .swiper-pagination {
      margin-top: -3%;
  }
}

@media (max-height: 310px) and (max-width: 700px){
  .page-wrapper {
      max-width: 320px;
  }

  .input-icon {
      width: 8px;
  }
  .input-toggle {
      font-size: 8px;
  }
  .text-error {
      font-size: 5px;
      bottom: -6px;
  }
} */