/* @import "../custom_font.css"; */

.chulabhorn-hospital-login {
    font-family: 'chulabhornlikit', sans-serif !important;
    min-height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background-color: #fff;

    h3 {
        font-size: clamp(24px, 1vw, 30px);
        font-weight: 700;
        color: #1F3D7D;
    }

    .image-section {
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
    }


    .login-form-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        padding: 30px;

        img {
            max-width: 70%;
            margin-bottom: 20px;
        }
    }

    .login-form-section input,
    .login-form-section button,
    .login-form-section form {
        width: 100%;
        box-sizing: border-box;
        /* Ensures padding doesn't overflow width */
    }

    .login-form {
        display: flex;
        flex-direction: column;
        gap: 34px;
    }

    .form-groups {
        display: flex;
        flex-direction: column;
        gap: 10px;

        label {
            font-size: clamp(18px, 0.7vw, 20px);
            font-weight: 500;
            color: #1F3D7D;
        }

        input {
            font-size: 16px;
            font-weight: 400;
            border: 1px solid #E0E0E0;
            border-radius: 5px;
            padding: 6px 12px;
        }

        .password-input-field {
            position: relative;
            display: flex;
            align-items: center;

            .form-control {
                padding-right: 40px;
            }

            .toggle-password-btn {
                position: absolute;
                right: 15px;
                cursor: pointer;
                color: #666;
                z-index: 10;
                bottom: 6px;
            }
        }

        .forget-password {
            font-size: 14px;
            font-weight: 400;
            color: #1F3D7D;
            text-decoration: underline;
            text-align: right;
        }

    }

    .login-button {
        font-size: 16px;
        font-weight: 500;
        width: 100%;
        background-color: #F46B20;
        border: none;
        border-radius: 5px;
        color: #fff;
        padding: 8px 12px;
    }
}

@media (max-width: 700px) {
    .chulabhorn-hospital-login {
        display: flex;
        justify-content: center;
        align-items: center;

        .image-section {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .login-form-section {
            position: relative;
            width: 80%;
            border-radius: 10px;
            background-color: #fff;

            img {
                max-width: 100%;
            }
        }
    }
}