@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* {
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary-color: #c6c3c3;
  --second-color: #ffffff;
  --black-color: #000000;
}

body {
  background-image: url("../img/bglogin.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: var(--second-color);
}

a:hover {
  text-decoration: underline;
}

.wrapper {
  width: 100%;
  background-color: #00000033;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login_box {
  position: relative;
  width: 450px;
  color: var(--second-color);
  backdrop-filter: blur(25px);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 5.5em 2.5em 2em 2.5em;
  box-shadow: 0px 0px 10px 2px #00000033;
}

.corner-top-right {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 0px; 
  right: 0px; 
  border-bottom-left-radius: 15px;
  border-top-right-radius: 10px;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.corner-top-right::before {
  width: 20px;
  height: 20px;
  content: "";
  box-shadow: 15px 0 0 0 var(--primary-color);
  position: absolute;
  top: -1px;
  left: -20px;
  border-top-right-radius: 50%;
  background: transparent;
}

.corner-top-right::after {
  content: "";
  width: 20px;
  height: 20px;
  box-shadow: 0 -15px 0 0 var(--primary-color);
  position: absolute;
  top: 40px;
  right: -1px;
  border-top-right-radius: 50%;
  background: transparent;
}

.corner-top-right .bi {
  font-size: 30px;
  color: red;
  line-height: 0; /* ปรับ line-height เพื่อให้ไอคอนอยู่ตรงกลาง */
  transform: translate(20px, -12px); /* ปรับตำแหน่งของไอคอน */
  z-index: 2;
}

.corner-top-left {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 0px; 
  left: 0px; 
  border-bottom-right-radius: 15px;
  border-top-left-radius: 10px;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1; /* เพิ่ม z-index เพื่อให้เลเยอร์สูงกว่าส่วนอื่น ๆ */
}

.corner-top-left::before {
  width: 20px;
  height: 20px;
  content: "";
  box-shadow: -15px 0 0 0 var(--primary-color);
  position: absolute;
  top: -1px;
  right: -20px;
  border-top-left-radius: 50%;
  background: transparent;
}

.corner-top-left::after {
  content: "";
  width: 20px;
  height: 20px;
  box-shadow: 0 -15px 0 0 var(--primary-color);
  position: absolute;
  top: 40px;
  left: -1px;
  border-top-left-radius: 50%;
  background: transparent;
}

.corner-top-left .bi{
  font-size: 30px;
  color: black;
  line-height: 0; /* ปรับ line-height เพื่อให้ไอคอนอยู่ตรงกลาง */
  transform: translate(20px, -12px); /* ปรับตำแหน่งของไอคอน */
  z-index: 2; /* เพิ่ม z-index เพื่อให้เลเยอร์สูงกว่าไอคอน */
}

.corner-bottom-left {
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: 0;
  left: 0;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 10px;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.corner-bottom-left::before {
  width: 20px;
  height: 20px;
  content: "";
  box-shadow: -15px 0 0 0 var(--primary-color);
  position: absolute;
  bottom: -1px;
  right: -20px;
  border-bottom-left-radius: 50%;
  background: transparent;
}

.corner-bottom-left::after {
  content: "";
  width: 20px;
  height: 20px;
  box-shadow: 0 15px 0 0 var(--primary-color);
  position: absolute;
  bottom: 40px;
  left: -1px;
  border-bottom-left-radius: 50%;
  background: transparent;
}

.corner-bottom-left .bi {
  font-size: 30px;
  color: red;
  line-height: 0;
  transform: translate(20px, -10px);
  z-index: 2;
}

.corner-bottom-right {
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: 0;
  right: 0;
  border-top-left-radius: 15px;
  border-bottom-right-radius: 10px;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.corner-bottom-right::before {
  width: 20px;
  height: 20px;
  content: "";
  box-shadow: 15px 0 0 0 var(--primary-color);
  position: absolute;
  bottom: -1px;
  left: -20px;
  border-bottom-right-radius: 50%;
  background: transparent;
}

.corner-bottom-right::after {
  content: "";
  width: 20px;
  height: 20px;
  box-shadow: 0 15px 0 0 var(--primary-color);
  position: absolute;
  bottom: 40px;
  right: -1px;
  border-bottom-right-radius: 50%;
  background: transparent;
}

.corner-bottom-right .bi {
  font-size: 30px;
  color: black;
  line-height: 0;
  transform: translate(21px, -10px);
  z-index: 2;
}

.login-header {
  width: 140px;
  height: 70px;
  background-color: var(--primary-color);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 20px 20px;
}

.login-header span {
  font-size: 30px;
  color: var(--black-color);
}

.login-header::before {
  width: 30px;
  height: 30px;
  content: "";
  box-shadow: 15px 0 0 0 var(--primary-color);
  position: absolute;
  top: 0;
  left: -30px;
  border-top-right-radius: 50%;
  background: transparent;
}

.login-header::after {
  content: "";
  width: 30px;
  height: 30px;
  box-shadow: -15px 0 0 0 var(--primary-color);
  position: absolute;
  top: 0;
  right: -30px;
  border-top-left-radius: 50%;
  background: transparent;
}

.input_box {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}

.input-field {
  width: 100%;
  height: 55px;
  background: transparent;
  color: var(--second-color);
  font-size: 16px;
  padding-inline: 20px 50px;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  outline: none;
}

#user {
  margin-bottom: 10px;
}

.label {
  position: absolute;
  top: 15px;
  left: 20px;
  transition: 0.2s;
}

.input-field:focus ~ .label,
.input-field:valid ~ .label {
  background-color: var(--primary-color);
  color: var(--black-color);
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 14px;
  border-radius: 30px;
  padding: 0 10px;
}

i {
  position: absolute;
  top: 18px;
  right: 25px;
  font-size: 20px;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.remember-me {
  display: flex;
  gap: 4px;
}

.input-submit {
  width: 100%;
  height: 50px;
  background: var(--primary-color);
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.register {
  text-align: center;
}

.register a {
  font-weight: 500;
}


.passcode-area {
  text-align: center;
}


.passcode-area>input {
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  padding: 0;
  margin: 25px 6px 0;
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 32px;
  line-height: 1.29;
  text-transform: uppercase;
  background-clip: padding-box;

  &:focus {
    -webkit-appearance: none;
    border: 2px solid var(--second-color);
    outline: 0;
    box-shadow: 0px 0px 3px rgba(131, 192, 253, 0.5);
  }
}