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

body {
    background-image: url("/images/background-01.jpg");
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Kanit', sans-serif;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 150px;
    margin-bottom: 90px;
}

.register-container {
    background-color: #b6b6b6;
    border-radius: 10px;
    box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    width: 400px;
    margin: 0 auto;
}

.register-container .register-title {
    color: #2D2926;
    margin-bottom: 20px;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.1);
    font-size: 35px;
}

input {
    width: 70%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 2px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Kanit', sans-serif;
    outline: none;
}

input:focus {
    border-color: #013D66;
    box-shadow: 0 0 5px #013D66;
}

.button-container {
    display: flex;
    justify-content: center;

}

.confirm-btn {
    width: 48%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.1);
    font-family: 'Kanit', sans-serif;
    margin-top: 10px;
    background: linear-gradient(135deg, #013D66, #0B6DA3);
}

.confirm-btn:active {
    transform: scale(0.95);
    animation: clickEffect 0.2s;
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #0B3A53, #0E4D75);
}

.input-error {
    border: 2px solid red;
}

/* Responsive Styles for Registration Page */

/* Medium screens (768px-992px) */
@media screen and (max-width: 992px) {
    .container {
      margin-top: 150px;
    }
    
    .register-container {
      width: 90%;
      max-width: 400px;
      padding: 40px 20px;
    }
  }
  
  /* Small screens (576px-768px) */
  @media screen and (max-width: 768px) {
    .container {
      margin-top: 150px;
      margin-bottom: 60px;
    }
    
    .register-container {
      width: 90%;
      padding: 30px 15px;
    }
    
    .register-container .register-title {
      font-size: 28px;
      margin-bottom: 15px;
    }
    
    input {
      width: 85%;
      margin-bottom: 8px;
    }
    
    .confirm-btn {
      width: 70%;
    }
  }
  
  /* Extra Small screens (up to 576px) */
  @media screen and (max-width: 576px) {
    .container {
      margin-top: 150px;
      margin-bottom: 40px;
    }
    
    .register-container {
      width: 95%;
      padding: 25px 10px;
    }
    
    .register-container .register-title {
      font-size: 24px;
      margin-bottom: 12px;
    }
    
    input {
      width: 90%;
      padding: 8px;
      font-size: 14px;
      margin-bottom: 6px;
    }
    
    .confirm-btn {
      width: 85%;
      font-size: 14px;
      padding: 8px;
    }
    
    #error {
      font-size: 14px !important;
    }
  }
  
  /* Very Small screens (up to 375px) */
  @media screen and (max-width: 375px) {
    .container {
      margin-top: 150px;
    }
    
    .register-container .register-title {
      font-size: 22px;
    }
    
    input {
      width: 95%;
      font-size: 13px;
      padding: 7px;
    }
    
    .confirm-btn {
      width: 90%;
      font-size: 13px;
    }
    
    #error {
      font-size: 13px !important;
    }
  }
  
  /* Fix for background image on small screens */
  @media screen and (max-width: 768px) {
    body {
      background-position: center;
    }
  }