﻿:root {
    --primary-color: #0076C0; /* สีน้ำเงินดัชมิลล์ */
    --primary-hover: #005a93;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --text-color: #333333;
    --card-bg: #ffffff;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Sarabun', sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 420px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Branding Section */
.brand-logo img {
    /*width: 70px;
            height: 70px;*/
    max-width: 100%; /* ป้องกันไม่ให้โลโก้ใหญ่เกินกรอบ */
    height: auto; /* รักษาสัดส่วนของภาพไม่ให้บิดเบี้ยว */
    width: 70px; /* ปรับตัวเลขความกว้างตามความเหมาะสมที่ต้องการ */
    /*background-color: var(--primary-color);*/
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 118, 192, 0.3);
}


.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 30px;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

    .form-group label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: #4a5568;
        margin-bottom: 8px;
    }

.input-wrapper {
    position: relative;
}

    .input-wrapper i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #a0aec0;
        font-size: 1.1rem;
    }

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 118, 192, 0.15);
    }

/* Utility links (Remember me / Forgot PW) */
.form-utils {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #4a5568;
}

    .remember-me input {
        cursor: pointer;
    }

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

    .btn-submit:hover {
        background-color: var(--primary-hover);
    }

    .btn-submit:active {
        transform: scale(0.98);
    }



/* Footer Container */
.login-footer {
    margin-top: 25px;
    border-top: 1px solid #edf2f7;
    padding-top: 20px;
    text-align: center;
}

/* Quote ส่วนคำคม */
.footer-quote {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 15px;
}

/* ลิงก์ช่วยเหลือต่างๆ (Privacy, Support) */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.75rem;
}

    .footer-links a {
        color: var(--primary-color);
        text-decoration: none;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            text-decoration: underline;
            color: var(--primary-hover);
        }

.footer-divider {
    color: #cbd5e0;
}

/* ส่วนลิขสิทธิ์ */
.footer-copyright {
    font-size: 0.7rem;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .brand-name {
        font-size: 1.25rem;
    }
}

