/*//////////////////////////////////////////////////////////////////
[ FONT ]*/

@font-face {
  font-family: Poppins-Regular;
  src: url('../fonts/poppins/Poppins-Regular.ttf');
}

@font-face {
  font-family: Poppins-Medium;
  src: url('../fonts/poppins/Poppins-Medium.ttf');
}

@font-face {
  font-family: Poppins-Bold;
  src: url('../fonts/poppins/Poppins-Bold.ttf');
}

@font-face {
  font-family: Poppins-SemiBold;
  src: url('../fonts/poppins/Poppins-SemiBold.ttf');
}

/*//////////////////////////////////////////////////////////////////
[ RESET ]*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: Poppins-Regular, sans-serif;
}

/*---------------------------------------------*/
a {
  font-family: Poppins-Regular;
  font-size: 14px;
  line-height: 1.7;
  color: #e5e5e5;
  margin: 0;
  transition: all 0.3s ease;
}

a:focus {
  outline: none !important;
}

a:hover {
  text-decoration: none;
  color: #ffffff;
}

/*---------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  font-family: Poppins-Regular;
  font-size: 14px;
  line-height: 1.7;
  color: #cfd4ff;
  margin: 0;
}

ul,
li {
  margin: 0;
  list-style-type: none;
}

/*---------------------------------------------*/
input {
  outline: none;
  border: none;
  background: transparent;
}

textarea {
  outline: none;
  border: none;
}

textarea:focus,
input:focus {
  border-color: transparent !important;
}

input:focus::-webkit-input-placeholder {
  color: transparent;
}
input:focus:-moz-placeholder {
  color: transparent;
}
input:focus::-moz-placeholder {
  color: transparent;
}
input:focus:-ms-input-placeholder {
  color: transparent;
}

textarea:focus::-webkit-input-placeholder {
  color: transparent;
}
textarea:focus:-moz-placeholder {
  color: transparent;
}
textarea:focus::-moz-placeholder {
  color: transparent;
}
textarea:focus:-ms-input-placeholder {
  color: transparent;
}

input::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.65);
}
input:-moz-placeholder {
  color: rgba(255, 255, 255, 0.65);
}
input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.65);
}
input:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.65);
}

textarea::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.65);
}
textarea:-moz-placeholder {
  color: rgba(255, 255, 255, 0.65);
}
textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 0.65);
}
textarea:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.65);
}

label {
  margin: 0;
  display: block;
}

/*---------------------------------------------*/
button {
  outline: none !important;
  border: none;
  background: transparent;
}

button:hover {
  cursor: pointer;
}

iframe {
  border: none !important;
}

/*//////////////////////////////////////////////////////////////////
[ Utility ]*/

.txt1 {
  font-family: Poppins-Regular;
  font-size: 13px;
  color: #e5e5e5;
  line-height: 1.5;
}

/*//////////////////////////////////////////////////////////////////
[ login layout ]*/

.limiter {
  width: 100%;
  margin: 0 auto;
}

.container-login100 {
  width: 100%;
  min-height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 15px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  z-index: 1;

  /* เพิ่ม gradient ทันสมัยวิ่งเบา ๆ */
  background-image: linear-gradient(
      135deg,
      rgba(10, 12, 30, 0.94),
      rgba(33, 12, 80, 0.94)
    ),
    url("../images/bg-01.jpg");
  background-size: cover;
}

.container-login100::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle at top left, #5f7cff44, transparent 55%),
    radial-gradient(circle at bottom right, #ffb34733, transparent 60%);
  opacity: 0.9;
  filter: blur(2px);
}

/* กล่อง login แบบ glassmorphism หรู ๆ */
.wrap-login100 {
  width: 500px;
  border-radius: 22px;
  overflow: hidden;
  padding: 50px 55px 40px 55px;

  background: rgba(19, 22, 60, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);

  position: relative;
}

/* เส้นไลท์ขอบกล่อง */
.wrap-login100::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #ffd36b, #c4a3ff, #6ddcff);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
}

/*------------------------------------------------------------------
[ Form ]*/

.login100-form {
  width: 100%;
  position: relative;
  z-index: 1;
}

.login100-form-logo {
  font-size: 60px;
  color: #333;

  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff, #d4dcff);
  margin: 0 auto 18px auto;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.login100-form-logo img {
  width: 72%;
  height: auto;
}

.login100-form-title {
  font-family: Poppins-SemiBold;
  font-size: 26px;
  color: #ffffff;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

/* subtitle เล็กใต้ title (ใช้ข้อความเดิมได้) */
.login100-form-title + p {
  font-size: 13px;
  text-align: center;
  color: #cfd4ff;
  margin-bottom: 22px;
}

/*------------------------------------------------------------------
[ Input ]*/

.wrap-input100 {
  width: 100%;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 25px;
  padding-bottom: 4px;
}

.input100 {
  font-family: Poppins-Regular;
  font-size: 16px;
  color: #ffffff;
  line-height: 1.3;

  display: block;
  width: 100%;
  height: 48px;
  background: transparent;
  padding: 0 45px 0 38px;
}

/* focus line & icon label */
.focus-input100 {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.focus-input100::before {
  content: "";
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffd36b, #ff92c2, #9b8cff);
  transition: width 0.35s ease;
}

.focus-input100::after {
  font-family: Material-Design-Iconic-Font;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);

  content: attr(data-placeholder);
  display: block;
  width: 100%;
  position: absolute;
  top: 9px;
  left: 0;
  padding-left: 5px;
  transition: all 0.35s ease;
}

.input100:focus {
  padding-left: 5px;
}

.input100:focus + .focus-input100::after {
  top: -18px;
  font-size: 13px;
  opacity: 0.9;
}

.input100:focus + .focus-input100::before {
  width: 100%;
}

.has-val.input100 + .focus-input100::after {
  top: -18px;
  font-size: 13px;
  opacity: 0.9;
}

.has-val.input100 + .focus-input100::before {
  width: 100%;
}

.has-val.input100 {
  padding-left: 5px;
}

/* icon แสดงรหัสผ่านให้เข้าชุด */
#togglePassword {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease, transform 0.15s ease;
}

#togglePassword:hover {
  color: #ffd36b;
  transform: scale(1.1);
}

/*==================================================================
[ Checkbox ]*/

.contact100-form-checkbox {
  padding-left: 5px;
  padding-top: 5px;
  padding-bottom: 30px;
}

.input-checkbox100 {
  display: none;
}

.label-checkbox100 {
  font-family: Poppins-Regular;
  font-size: 13px;
  color: #ffffff;
  line-height: 1.3;

  display: block;
  position: relative;
  padding-left: 26px;
  cursor: pointer;
}

.label-checkbox100::before {
  content: "\f26b";
  font-family: Material-Design-Iconic-Font;
  font-size: 13px;
  color: transparent;

  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #ffffff;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.input-checkbox100:checked + .label-checkbox100::before {
  color: #4a3aff;
}

/*------------------------------------------------------------------
[ Button ]*/

.container-login100-form-btn {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.login100-form-btn {
  font-family: Poppins-Medium;
  font-size: 16px;
  color: #14142b;
  line-height: 1.2;
  letter-spacing: 0.3px;

  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 28px;
  min-width: 140px;
  height: 52px;
  border-radius: 999px;

  background: linear-gradient(135deg, #ffd36b, #ff92c2, #9b8cff);
  position: relative;
  z-index: 1;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* วงแสงใต้ปุ่ม */
.login100-form-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0, #ffffff, transparent 65%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.35s ease;
}

.login100-form-btn:hover {
  color: #14142b;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  filter: brightness(1.04);
}

.login100-form-btn:hover:before {
  opacity: 0.9;
}

.login100-form-btn:active {
  transform: translateY(0px) scale(0.99);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

/*------------------------------------------------------------------
[ Responsive ]*/

@media (max-width: 576px) {
  .wrap-login100 {
    width: 100%;
    padding: 40px 18px 30px 18px;
    border-radius: 18px;
  }

  .login100-form-logo {
    width: 100px;
    height: 100px;
  }

  .login100-form-title {
    font-size: 22px;
  }
}

/*------------------------------------------------------------------
[ Alert validate ]*/

.validate-input {
  position: relative;
}

.alert-validate::before {
  content: attr(data-validate);
  position: absolute;
  max-width: 80%;
  background-color: #1f1532;
  border: 1px solid #ff6b81;
  border-radius: 6px;
  padding: 7px 26px 7px 10px;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  pointer-events: none;

  font-family: Poppins-Regular;
  color: #ffd6dc;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;

  visibility: hidden;
  opacity: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);

  transition: opacity 0.3s ease;
}

.alert-validate::after {
  content: "\f12a";
  font-family: FontAwesome;
  font-size: 15px;
  color: #ff6b81;

  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 6px;
}

.alert-validate:hover:before {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 992px) {
  .alert-validate::before {
    visibility: visible;
    opacity: 1;
  }
}
