@font-face {
    font-family: 'pslxkittithadabold';
    src: url('pslxkittithada_bold-webfont.woff2') format('woff2'),
         url('pslxkittithada_bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
	font-family: 'Sukhumvit Set';
	src: url('SukhumvitSet-Medium.eot');
	src: url('SukhumvitSet-Medium.eot?#iefix') format('embedded-opentype'),
		url('SukhumvitSet-Medium.woff2') format('woff2'),
		url('SukhumvitSet-Medium.woff') format('woff'),
		url('SukhumvitSet-Medium.ttf') format('truetype'),
		url('SukhumvitSet-Medium.svg#SukhumvitSet-Medium') format('svg');
	font-weight: 500;
	font-style: normal;
}

/* พื้นหลัง */
body {
    margin: 0;
    padding: 0;
    font-family: 'Kanit', sans-serif;
    background-image: url("../imges/bg.webp");
    background-position: center top;  /* จัดตำแหน่งภาพให้อยู่กลางด้านบน */
    background-repeat: no-repeat;    /* ไม่ให้ภาพซ้ำ */
    background-size: cover;          /* ปรับขนาดภาพให้เต็มพื้นที่ */
    height: 110vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* กรอบ register */
.register-wrapper {
    width: 90%;
    max-width: 600px;
    padding: 20px;
}

.register-container {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

.btn {
    background-color: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #5e1dd8;
}

/* error message */
.error-message {
    background-color: #ff4d4f;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* ฟอร์ม */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="tel"],
input[type="password"] {
    width: 90%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus {
    border-color: #667eea;
    outline: none;
}

/* ปุ่ม register */
.btn-register2 {
    width: 100%;
    padding: 12px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-register2:hover {
    background-color: #556cd6;
}

/* ลิงก์ */
.text-center {
    margin-top: 20px;
}

.text-center a {
    color: #002fff;
    text-decoration: none;
    font-weight: bold;
}

.text-center a:hover {
    text-decoration: underline;
}

/* มือถือ: ขยายเต็มหน้าจอ */
@media (max-width: 767px) {
    .register-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    .register-container {
        padding: 20px 15px;
        border-radius: 20px;
        box-shadow: none;
        height: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* แท็บเล็ต: กรอบกลางๆ */
@media (min-width: 768px) and (max-width: 1023px) {
    .login-wrapper {
        max-width: 500px;
    }
}

/* เดสก์ท็อป: กรอบใหญ่ */
@media (min-width: 1024px) {
    .login-wrapper {
        max-width: 700px;
    }
}
.navbar {
    background-image: url("../imges/hbg.webp");
    border-bottom: 1px solid #ffee00;
    padding-bottom: 20px;
    padding-top: 10px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
  }

  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    text-decoration: none;
    width: 60px;
    height: 60px; 
  }

  .auth-buttons {
    display: flex;
    gap: 10px;
  }

  .btn {
    padding: 12px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
    text-align: center;
    font-family: 'Sukhumvit Set';
  }

  .btn-register {
    background-color: #ff0000;
    color: white;
    width: 100px;
  }

  .btn-login {
    background-color: #ffd900;
    color: rgb(0, 0, 0);
  }

  .menu-toggle {
    display: none;
  }

  @media (max-width: 768px) {
    .container {
      flex-direction: column;
      align-items: center;
    }

    .logo {
      order: 1;
      text-align: center;
      width: 100%;
      margin-bottom: 10px;
    }

    .auth-buttons {
      order: 2;
      display: flex;
      justify-content: center;
      width: 100%;
      gap: 20px;
      margin-top: 5px;
    }

    .auth-buttons a {
      min-width: 120px;
      text-align: center;
    }

    .menu-toggle {
      display: none;
    }
  }