/* Import Google Font */
@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';
}

body {
    background: url('bglog.gif') ;
    backdrop-filter: blur(8px);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    color: #fff;
}

/* Container for the form */
.from-container {
    width: 100%;
    max-width: 400px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

/* Form heading */
.fino {
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.fino h1 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

/* Input box styling */
.input-box {
    position: relative;
    margin-bottom: 20px;
}

.inputs {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: 0.3s ease-in-out;
}

.inputs:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
}

/* Placeholder styling */
::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Icon positioning */
.input-box .icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

/* Button styling */
.btn {
    width: 100%;
    padding: 12px 20px;
    background: white; /* เริ่มต้นเป็นสีขาว */
    color: black; /* ตัวอักษรสีดำ */
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.5s ease-in-out, color 0.5s ease-in-out; /* ให้เปลี่ยนสีอย่างนุ่มนวล */
}

/* @keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

.btn:hover {
    background: linear-gradient(135deg, #ff0000, #ff7300, #ffeb00, #47ff00, #00ffee, #2b65ff, #8000ff, #2b65ff, #00ffee, #47ff00, #ffeb00, #ff7300, #ff0000);
    animation: rainbow 3s linear infinite;
    background-size: 400%;
    color: white;
} */

.r {
    background: linear-gradient(135deg, #63b3ed, #ff1313);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Forgot password and remember me */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-size: 14px;
}

.remember-forgot label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.remember-forgot a {
    color: #63b3ed;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 480px) {
    .from-container {
        padding: 20px;
        width: 90%;
    }

    .inputs {
        font-size: 14px;
    }

    .btn btn:hove{
        font-size: 14px;
    }
}