﻿/* Reset และ Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables ที่ตรงกับ Main Theme */
:root {
    --sidebar-color: #8B6914;
    --sidebar-hover: #A67C00;
    --primary-blue: #2E5984;
    --orange-accent: #E67E22;
    --yellow-accent: #F1C40F;
    --star-yellow: #FFD700;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}


/* -------------------------------
   LOGIN FORM CUSTOM STYLES
---------------------------------*/

.login_form {
    width: 400px;
    max-width: 420px;
    background-color: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

.login_content h1.title-with-lines {
    font-size: 24px;
    font-weight: 700;
    color: #0d51ab;
    text-align: center;
    margin-bottom: 25px;
}

.crm-text {
    color: #0d51ab;
}

.module-text {
    color: #333;
}

.login_content .form-control {
    height: 45px;
    width: 100%;
    font-size: 10px;
    padding-left: 10px;
    border-radius: 15px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .login_content .form-control:focus {
        border-color: #0d51ab;
        box-shadow: 0 0 0 0.2rem rgba(13, 81, 171, 0.25);
    }

.text-danger {
    font-size: 12px !important;
    margin-top: 4px;
    display: block;
}

.btn.BLogin {
    width: 50%;
    padding: 12px;
    font-size: 16px;
    color: #fff;
    border-radius: 6px;
    background-color: #0d51ab;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn.BLogin:hover {
        background-color: #083c88;
    }

.separator p {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
    text-align: center;
}

.alert {
    font-size: 10px;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 15px;
}

img[src*="PMPOSLOGO1.png"] {
    margin-bottom: 20px;
}
.text-center {
    display: flex;
    justify-content: center;
}
@media (min-width: 768px) {
    .container-md, .container-sm, .container {
        max-width: 720px;
    }
}
@media (min-width: 576px) {
    .container-sm, .container {
        max-width: 540px;
    }
}



.title-with-lines {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

    .title-with-lines::before,
    .title-with-lines::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 20%;
        height: 1px;
        background: #ccc;
    }

    .title-with-lines::before {
        left: 0;
    }

    .title-with-lines::after {
        right: 0;
    }



.con_nav {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.menu-toggle {
    cursor: pointer;
    font-weight: bold;
    padding: 10px;
    background: #0d51ab;
    color: white;
    border-radius: 5px;
    width: fit-content;
    width: 10%;
    height: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}