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

body {
    font-family: 'Sarabun', sans-serif;
    background: #e6fae6;
    margin: 0;
    padding: 0;
}

/* -------------------- Layout -------------------- */
.flex-login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0 auto;
    width: 100%;
}

/* -------------------- Login Card -------------------- */
.login-card-custom {
    border-radius: 12px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px; /* ใช้ max-width เพื่อควบคุมขนาดสูงสุด */
}

/* -------------------- ปุ่ม -------------------- */
.login-btn-blue {
    background-color: #02682d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

/* -------------------- Alert -------------------- */
.alert-custom {
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin-top: 10px;
}

/* -------------------- Text Style -------------------- */
.textname {
    color: rgb(2, 102, 24);
}
.text1 {
    color: rgb(134, 134, 134);
    font-size: 0.8rem;
}
.text2 {
    color: #7a5e02;
    font-size: 0.8rem;
}

/* -------------------- Fieldset -------------------- */
fieldset {
    color: #7a5e02;
    padding: 10px;
    border: 1px solid #a5a3a3;
    border-radius: 10px;
}

/* -------------------- Logo Image -------------------- */
.image .logo {
    width: 150px;
    height: 150px;
    margin: 0 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* -------------------- Sidebar (optional layout) -------------------- */
.col-sm-3 {
    position: fixed;
    left: 0;
    width: 200px;
    height: 100%;
    background: #7a5e02;
    color: white;
    padding: 20px;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 200px) {
    .col-sm-3 {
        position: relative;
        width: 100%;
        height: auto;
    }

    .login-card-custom,
    .alert-custom {
        max-width: 90%;
    }
}

@media (max-width: 300px) {
    .login-card-custom,
    .alert-custom {
        max-width: 100%;
    }

    .image .logo {
        width: 120px;
        height: 120px;
        margin: 0 20px;
    }
}
