﻿.bg {
    background-image: url('../images/beautiful-rainbow-nature.jpg');
    background-size: cover; /* ปรับขนาดภาพให้ครอบคลุมพื้นที่ */
    background-position: center center; /* กำหนดตำแหน่งของภาพ */
}


.input-group {
    display: flex;
    align-items: center;
    height: 48px;
    background-color: #FAFAFA;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    background-color: transparent;
    color: #495057;
    font-size: 16px;
    border: none;
    padding: 0;
}

.input-group .form-control {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 14px;
    font-size: 16px;
    background: transparent;
    color: #333;
    box-shadow: none;
}


*, body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    background-color: #152733;
    overflow: hidden;
}


.form-holder {
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

    .form-holder .form-content {
        position: relative;
        text-align: center;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-align-items: center;
        align-items: center;
        padding: 60px;
    }

.form-content .form-items {
    border: 3px solid #fff;
    padding: 40px;
    display: inline-block;
    width: 100%;
    min-width: 540px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    text-align: left;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    background-color: #93c696f0;
}

.form-content h3 {
    color: #fff;
    text-align: left;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
}

    .form-content h3.form-title {
        margin-bottom: 30px;
    }

.form-content p {
    color: #fff;
    text-align: left;
    font-size: 17px;
    font-weight: 300;
    line-height: 20px;
    margin-bottom: 30px;
}


.form-content label, .was-validated .form-check-input:invalid ~ .form-check-label, .was-validated .form-check-input:valid ~ .form-check-label {
    color: #fff;
}

.form-content input[type=text], .form-content input[type=password], .form-content input[type=email], .form-content select {
    width: 100%;
    padding: 9px 20px;
    text-align: left;
    border: 0;
    outline: 0;
    border-radius: 6px;
    background-color: #fff;
    font-size: 16px;
    font-weight: 300;
    color: #8D8D8D;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    /*margin-top: 16px;*/
}


.btn-primary {
    background-color: #6C757D;
    outline: none;
    border: 0px;
    box-shadow: none;
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
        background-color: #495056;
        outline: none !important;
        border: none !important;
        box-shadow: none;
    }

.form-content textarea {
    position: static !important;
    width: 100%;
    padding: 8px 20px;
    border-radius: 6px;
    text-align: left;
    background-color: #fff;
    border: 0;
    font-size: 16px;
    font-weight: 300;
    color: #8D8D8D;
    outline: none;
    resize: none;
    height: 120px;
    -webkit-transition: none;
    transition: none;
    margin-bottom: 14px;
}

    .form-content textarea:hover, .form-content textarea:focus {
        border: 0;
        background-color: #ebeff8;
        color: #8D8D8D;
    }

.mv-up {
    margin-top: -9px !important;
    margin-bottom: 8px !important;
}

.invalid-feedback {
    color: #ff606e;
}

.valid-feedback {
    color: #2acc80;
}


@media (max-width: 576px) {
    .form-items {
        min-width: auto !important;
        padding: 20px !important;
    }

    .form-content {
        padding: 30px !important;
    }

    .input-group-text {
        width: 40px !important;
    }

    .form-content h2, .form-content h3 {
        font-size: 20px !important;
    }
}

@media (max-width: 768px) {
    .form-items {
        min-width: auto !important;
    }
}




.input-group {
    display: flex;
    align-items: center;
    height: 48px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    background-color: transparent;
    color: #495057;
    font-size: 16px;
    border: none;
    padding: 0;
    flex-shrink: 0; /* ❗ทำให้ไม่บีบ */
}

.input-group .form-control {
    flex: 1;
    min-width: 0; /* ❗จำเป็นมาก */
    height: 100%;
    border: none;
    outline: none;
    padding: 0 14px;
    font-size: 15px;
    background: transparent;
    color: #333;
    box-shadow: none;
}


.btn-theme {
    border: 2px solid transparent;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    opacity: 0.95;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

    .btn-theme:hover {
        opacity: 1;
        transform: translateY(-1px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

/* ปุ่มเฉพาะ */
.btn-forgot {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.btn-verify {
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}

.btn-register {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}
