/* base style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  height: 100%;
  padding: 0px;
  margin: 0px;
  font-size: 14px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC,
    Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial,
    sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
}


/* common component style */
.hide {
  display: none !important;
}

.rj-btn {
  cursor: pointer;
  text-align: center;
  position: relative;
  background: rgba(0, 0, 0, 0.1);
  border: 0.5px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  height: 48px;
  line-height: 48px !important;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
}

.rj-btn.rj-btn-primary {
  background: rgb(0, 102, 255);
  border-color: rgb(0, 102, 255);
}

.rj-btn[data-i18n="voucher_login"] {
  font-size: 50%;
}

.rj-input {
  color: rgb(255, 255, 255);
  border-color: rgb(255, 255, 255);
}

.rj-input::-webkit-input-placeholder {
  color: rgba(255, 255, 255 0.25);
}

.rj-input::-moz-placeholder {
  color: rgba(255, 255, 255 0.25);
}

.rj-input:-ms-input-placeholder {
  color: rgba(255, 255, 255 0.25);
}


.dropdown {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  display: inline-block;
  cursor: pointer;
  line-height: 32px;
}

.dropdown-label {
  color: white;
  user-select: none;
}

.dropdown-arrow {
  margin-left: 8px;
  transition: transform 0.5s ease; 
  display: inline-block;
}

.dropdown.actived .dropdown-menu {
  display: block;
}
.dropdown.actived .dropdown-arrow{
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #0d1117;
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  display: none;
  line-height: 18px;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: white;
  text-align: right;
}

.dropdown-menu a:hover {
  background-color: #1b2631;
}

/* page style */
.language-select {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 1;
  cursor: pointer;
}

.body-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.body-loading {
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  position: fixed;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 2;
}

.body-background {
  position: fixed;
  left: 0;
  top: 0px;
  bottom: -1px;
  right: 0;
  background: url("../img/bg.jpg") center no-repeat;
  background-size: cover;
}

.body-background-mask {
  position: fixed;
  top: 0px;
  bottom: -1px;
  min-height: 100%;
  width: 100%;
}

.body-content-wrapper {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%
}


.body-content {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: start;
  flex: 1;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}


.content-logo-wrapper {
  width: 40%;
  margin: 0px 30%;
  display: block;
  margin-top: 70px;
  margin-bottom: 16px;
  padding: 0px;
}

.content-logo {
  width: 100%;
  display: block;
}


.login-form-wrapper .rj-input {
  color: #fff;
}

.login-msg-wrapper {
  width: 70%;
  text-align: center;
  margin: 0px 15%;
}

.login-msg-wrapper p {
  display: none;
  overflow-wrap: break-word;
  word-break: normal;
  word-wrap: break-word;
  white-space: normal;
  font-size: 14px;
  line-height: 18px;
  margin: 0;
  color: red;
}

.login-form-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  /* margin: 10px 2.5%; */
  line-height: 20px;
  font-size: 24px;
}

.login-form-title {
  display: inline-block;
  font-weight: 600;
  text-transform: capitalize;
  font-size: 32px;
  line-height: 32px;
  margin-bottom: 16px;
}

.login-form-wrapper .rj-input {
  border: none;
  width: 95%;
  border-bottom: 1px solid #fff;
  background: none;
  outline: none;
  line-height: 30px;
  height: 30px;
  /* margin-top: 10px; */
  box-sizing: border-box;
}


.login-split-line {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.login-split-line span {
  margin: 0 10px;
  color: #fff;
}

.login-split-line .left,
.login-split-line .right {
  width: 50%;
  height: 1px;
  background-color: #fff;
}


.login-form-wrapper .rj-input {
  width: 100%;
  height: 48px;
  line-height: 48px;
  padding: 0 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid #fff;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  margin-bottom: 16px;
}

.content-decoration-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 20px;
  width: 100%;
}

.login-wrapper {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  width: 100%;
}

.login-form-wrapper {
  width: 100%;
  text-align: left;
}

.login-msg {
  color: red;
  text-align: center;
}

.login-wrapper .rj-btn {
  margin-bottom: 10px;
}

.login-wrapper .login-btn {
  margin-top: 5px;
  margin-bottom: 0;
}

.other-btn-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: start;
  width: 100%;
}

.login-split-line {
  width: 100%;
}

/* >= 1200px pc */
@media screen and (min-width: 1025px) {
  .rj-btn {
    font-size: 14px;
  }

  .body-wrapper {
    font-size: 14px;
    height: 100vh;
    min-height: 760px;
  }

  .login-form-wrapper {
    width: 375px;
    text-align: left;
  }

  
  .login-wrapper {
    box-sizing: border-box;
    border-radius: 0 32px 32px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 100%;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }


  .content-decoration-wrapper {
    align-items: flex-start;
    flex: 1;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    height: 100%;
  }

  .body-content {
    background: url("../img/bg.jpg") center no-repeat;
    align-items: flex-start;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    flex-direction: row;
    justify-content: space-between;
    height: 720px;
  }

  .body-content-wrapper {
    flex-direction: row;
    justify-content: space-between;
    width: 1280px;
  }

  .content-logo-wrapper {
    margin-left: 30px;
    width: 140px;
  }

  .login-msg {
    width: 375px;
  }

  .login-split-line {
    width: 375px;
  }

  .rj-btn {
    background: none;
    border: 0.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    width: 375px;
  }

  .login-form-wrapper .rj-input {
    width: 375px !important;
  }

  .body-background-mask {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(89px);
    -webkit-backdrop-filter: blur(89px);
    opacity: 1 !important;
    background-blend-mode: soft-light;
  }
}


/* ===== KLCiS voucher card responsive layout ===== */
.klcis-card {
  width: 100%;
  max-width: 480px;
  border-radius: 15px;
  margin: 20px auto;
}

/* Ensure portal body and container behave nicely on laptops/tablets */
body.portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 90vh;
}

body.portal > .container {
  width: 100%;
  max-width: 900px;
}

/* Tablet and small laptop tweaks */
@media (max-width: 991.98px) {
  body.portal {
    padding: 16px;
  }

  .klcis-card {
    margin-top: 24px;
    max-width: 100%;
  }
}

/* Very small devices */
@media (max-width: 575.98px) {
  .klcis-card {
    border-radius: 10px;
  }
}


/* Override: keep voucher login block on white background across viewports */
.login-wrapper {
  background: #ffffff !important;
  border-radius: 12px;
  padding: 20px 24px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Additional page-specific styles moved from inline */
.portal-viewport {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-wrap {
  display: inline-block;
  background: #001f3f;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}
.logo-wrap img {
  width: 280px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.main-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.login-card {
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  font-size: 0.75em;
}

.login-form-title.centered {
  font-size: 0.75em;
  font-weight: 600;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}

.input-with-icon {
  display: inline-block;
  position: relative;
  width: 90%;
  max-width: 432px;
  margin: 0 auto;
}

.paste-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#login_btn {
  font-size: 0.75em;
  font-weight: 400;
  min-height: 44px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.07);
  width: 75%;
  display: block;
  margin: 0 auto;
}

.login-msg {
  min-height: 22px;
  font-size: 0.75em;
}

.other-btn-wrapper {
  text-align: center;
}

.oper-section-inner {
  max-width: 480px;
  margin: 24px auto 0 auto;
  border: 1px solid #e5e7eb;
}

#amountDropdown {
  max-width: 320px;
  margin: 0 auto;
  display: block;
}

#numberInput {
  width: 100%;
  letter-spacing: 3px;
  max-width: 320px;
  margin: 0 auto;
  font-size: 0.88em;
  height: 26px;
}

#gcash, #maya, #generate_qr {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  min-height: 34px !important;
  line-height: 1 !important;
  font-size: 0.95em !important;
  max-width: 320px;
  margin: 8px auto;
  display: block;
}

#gcash img, #maya img {
  height: 24px !important;
  width: auto !important;
}

#generate_qr {
  padding: 8px 12px !important;
}

#voucher_code {
  width: 90% !important;
  max-width: 432px !important;
  margin: 0 auto !important;
  display: block !important;
}

@media (max-width: 480px) {
  #voucher_code {
    width: 90% !important;
    max-width: 300px !important;
  }

  .login-btn,
  #login_btn {
    width: 69% !important;
  }
}

/* --- styles moved from index.html head --- */
.custom-swal-width {
  width: 380px;
}

label {
  display: block;
  margin-bottom: 5px;
  margin-top: 5px;
}

/* Compact login-card tweaks (moved from inline head styles) */
.login-wrapper {
  padding: 10px !important;
}

.login-wrapper .login-form-title {
  min-height: 22px !important;
  font-size: 0.68em !important;
}

.login-wrapper .rj-input,
.login-wrapper input[type="text"],
.login-wrapper .rj-btn,
.login-wrapper .login-btn {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.login-wrapper .login-btn {
  min-height: 26px !important;
  font-size: 0.6em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Responsive mobile tweaks (moved from index.html) */
@media (max-width: 480px) {
  body.portal {
    padding: 6px !important;
  }

  .d-flex img.img-fluid {
    width: 200px !important;
    max-width: 80% !important;
    height: auto !important;
  }

  .login-wrapper,
  .oper-section-inner {
    max-width: 100% !important;
    width: 100% !important;
    margin: 8px auto !important;
    padding: 12px !important;
    border-radius: 8px !important;
  }

  .login-wrapper,
  .oper-section-inner,
  .login-form-title {
    font-size: 0.95em !important;
  }

  .rj-input,
  input.form-control,
  .form-control.text-center {
    font-size: 0.75rem !important;
    padding: 8px 10px !important;
    height: 40px !important;
  }

  .login-btn,
  .rj-btn {
    width: 69% !important;
    min-height: 44px !important;
    font-size: 1rem !important;
    display: block !important;
    margin: 8px auto !important;
  }

  .custom-select {
    font-size: 0.9em !important;
    max-width: 100% !important;
  }

  .cs-current {
    height: 42px !important;
    padding: 8px 10px !important;
    font-size: 0.95em !important;
  }

  .cs-list li {
    font-size: 0.95em !important;
    padding: 10px 12px !important;
  }

  .btn.btn-md {
    width: 92% !important;
    max-width: none !important;
    padding: 10px 12px !important;
  }

  .btn img {
    height: 22px !important;
    width: auto !important;
  }

  #generate_qr {
    width: 92% !important;
  }

  .login-msg,
  .text-muted,
  .text-sm {
    font-size: 0.9em !important;
  }

  .p-4 {
    padding: 12px !important;
  }

  .mt-3 {
    margin-top: 10px !important;
  }
}

/* End moved styles */
