@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');   

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


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Prompt', sans-serif;
}

body {
  background: #0f0f14;
  color: white;
}

/* ================= NAVBAR ================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: #0b0b0f;
}

.logo {
  font-size: 24px;
  font-weight: 700;
}

.logo span {
  color: #ffb400;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #ddd;
  font-weight: 400;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #ffb400;
}

.nav-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn.dark {
  background: #1f1f25;
  color: white;
}

.btn.primary {
  background: #ffb400;
  color: black;

  ; a {
    text-decoration: none;
    color: #fff;
  }
}


.search-box input {
    padding: 6px 14px;
    border: 1px solid #7cc9f5;
    border-radius: 20px;
    outline: none;
  }




  .buttons {
    display: flex;
    gap: 10px;
  }

  .buttons button {
    font-family: 'Kanit', sans-serif;
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .login {
    background-color: #cce5ff;
    color: #007bff;
  }

  .login:hover {
    background-color: #b3daff;
  }

  .register {
    background-color: #dee2e6;
    color: #495057;
  }

  .register:hover {
    background-color: #ced4da;
  }



.box-login {
    margin-top: 50px;
}


.box {
    position: relative;
    width: 380px;
    height: 420px;
    border-radius: 8px;
    background: #1c1c1c;
    overflow: hidden;
}

.box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg, transparent,transparent,#45f3ff ,#45f3ff ,#45f3ff);
    z-index: 1;
    transform-origin: bottom right;
    animation: animation 6s linear infinite;
}

.box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg, transparent,transparent,#45f3ff ,#45f3ff ,#45f3ff);
    z-index: 1;
    transform-origin: bottom right;
    animation: animation 6s linear infinite;
    animation-delay: -3s;
}

.borderline {
    position: absolute;
    top: 0;
    inset: 0;
}

.borderline::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg, transparent,transparent,#ff2770 ,#ff2770 ,#ff2770);
    z-index: 1;
    transform-origin: bottom right;
    animation: animation 6s linear infinite;
    animation-delay: -1.5s;
}

.borderline::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg, transparent,transparent,#ff2770 ,#ff2770 ,#ff2770);
    z-index: 1;
    transform-origin: bottom right;
    animation: animation 6s linear infinite;
    animation-delay: -4.5s;
}

@keyframes animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.box form {
    position: absolute;
    inset: 4px;
    background: #222;
    padding: 50px 40px;
    border-radius: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.box form h2 {
    color: #fff;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.1rem;
}

.box form .inputBox {
    position: relative;
    width: 280px;
    margin: 10px;
}

.box form .inputBox input {
    position: relative;
    width: 100%;
    padding: 20px 10px 10px;
    background: transparent;
    outline: none;
    border: none;
    box-shadow: none;
    color: #23242a;
    font-size: 1em;
    letter-spacing: 0.05em;
    transition: 0.5s;
    z-index: 10;
}

.box form .inputBox span {
    position: absolute;
    left: 0;
    padding: 20px 0px 10px;
    pointer-events: none;
    color: #8f8f8f;
    font-size: 1em;
    letter-spacing: 0.05em;
    transition: 0.5s;
}

.box form .inputBox input:valid ~ span,
.box form .inputBox input:focus ~ span {
    color: #fff;
    font-size: 0.75em;
    transform: translateY(-34px);
}

.box form .inputBox i {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.5s;
    pointer-events: none;
}


.box form .inputBox input:valid ~ i,
.box form .inputBox input:focus ~ i {
    height: 44px;

}

.box form .links {
    display: flex;
    justify-content: space-between;
}

.box form .links a {
    margin: 10px 0px;
    font-size: 0.75em;
    color: #8f8f8f;
    text-decoration: none;
}

.box form .links a:hover
.box form .links a:ntn-child(2) {
    color: #fff;
}

.box form input[type="submit"]
{
    border: none;
    outline: none;
    padding: 9px 25px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
}

.box form input[type="submit"]:active {
    opacity: 0.8;
}


/* ================= FOOTER ================= */

.footer {
  margin-top: 10rem;
  background: linear-gradient(to right, #0f0f0f, #141414);
  color: #ddd;
  padding-top: 60px;
  font-family: 'Prompt', sans-serif;
}

.footer-container {
  width: 85%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  padding-bottom: 50px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #aaa;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #ffb400;
}

.footer-col .mt {
  margin-top: 25px;
}

.contact li {
  color: #bbb;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
  gap: 10px;
}