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

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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('../images/bg_login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.glass-container {
    width: 400px;
    height: 500px;
    right: 350px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    border: 1px solid #7a78fc;
}

.glass-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

.login-box {
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    color: #0c0091;
    margin-top: 55px;
    margin-bottom: -20px;
}

form {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

input {
    padding: 10px;
    margin-top: 25px;
    border: none;
    border-radius: 10px;
    background: transparent;
    border: 1px solid #0c0091;
    color: #0c0091;
    font-size: 13px;
}

input::placeholder {
    color: #0c0091;
}

input:focus {
    outline: none;
}

.options {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 13px;
    color: #0c0091;
}

.options input {
    margin-right: 5px;
    margin-top: 0;
}

.options a {
    text-decoration: none;
    color: #0c0091;
    margin-left: auto;
}

button {
    background: #0c0091;
    color: rgb(255, 255, 255);
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-size: 16px;
}

button:hover {
    background: transparent;
    color: #0c0091;
    outline: 1px solid #0c0091;
}

p {
    font-size: 12px;
    color: #0c0091;
    margin-top: 15px;
}

#register {
    text-decoration: none;
    color: #0c0091;
    font-weight: bold;
    font-size: 14px;
}


/* Responsive สำหรับหน้าจอเล็ก */
@media (max-width: 992px) {
  .glass-container {
    max-width: 75%;
    right: 0;
  }

form {
    margin-top: 50px;
}

  .login-box {
    max-width: 240px;
}
 }

@media (max-width: 576px) {
  .glass-container {
    max-width: 75%;
    right: 0;
  }

form {
    margin-top: 40px;
}

  .login-box {
    max-width: 240px;
}
}

@media (max-width: 430px) {
  .glass-container {
    max-width: 70%;
    right: 0;
  }

form {
    margin-top: 40px;
}

  .login-box {
    max-width: 240px;
}
 }