/* css/index.css */
html {
    width: 100%;
    height: 100% !important;
    background: linear-gradient(120deg, #0b2027, #203a43, #2c5364);
    overflow: hidden !important;
    background: url(../assets/bg.webp) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

body {
    background: initial;
}

.container {
    justify-content: center;
}

.logo {
    width: 20rem;
}

h1 {
    font-size: 1.68rem;
    font-weight: 900;
    -webkit-text-stroke: 1.2px white;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.container>span {
    padding: 0.5rem 1rem;
    border-radius: 0.8rem;
    background: rgb(22 87 22);
}

section.Access {
    width: -webkit-fill-available;
    max-width: 500px;
    padding: 1rem;
    margin: 1rem;
    /* border: 3px solid rgb(255 255 255 / 30%); */
    border-radius: 2.5rem;
    background: linear-gradient(152deg, rgb(255 255 255), rgb(255 255 255 / 84%));
    background-clip: padding-box;
    backdrop-filter: blur(3px);
    box-shadow: 0 4px 10px rgb(0 0 0 / 51%);
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section.Access h2 {
    margin: initial;
    font-size: 1.5rem;
    color: #04030e;
    font-weight: 400;
    /* text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.6); */
}

section.Access .access_form {
    width: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

section.Access .access_form>label {
    color: black;
    margin: initial;
}

section.Access .access_form>.field {
    width: -webkit-fill-available;
    position: relative;
}

section.Access .access_form>.field>input[type="text"] {
    width: -webkit-fill-available;
    height: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: black;
    text-align: center;
    padding: 0.8rem;
    border-radius: 1.8rem;
    border: 2px solid #e6e6e6;
    outline: none;
}

section.Access .access_form>.field>button[name="paste"] {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 0;
    padding: 0.5rem;
    border: none;
    border-radius: 0.8rem;
    background: transparent;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

section.Access .access_form button[type="submit"] {
    width: -webkit-fill-available;
    height: 3.8rem;
    font-size: 1.28rem;
    padding: 10px;
    border: none;
    border-radius: 1.68rem;
    background: linear-gradient(180deg, #19c110, #057703) !important;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

section.Access .access_form button:hover {
    transform: scale(1.05);
    background-color: #2471a3;
}

section.Access .error-message {
    width: fit-content;
    color: #ffffff;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.8rem;
    background: #ff0044;
}

/* สไตล์สำหรับวีดีโอพื้นหลัง */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: none;
}