/* ✅ ทำให้ padding ไม่ทำให้เกิดความกว้างเกินจอ */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Kanit', sans-serif;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    background-color: #e9f1ff;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    padding: 20px;
}

.login-box {
    background-color: white;
    padding: 25px 25px 40px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.icon-circle {
    background-color: #cce2ff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}

.icon {
    color: #2979ff;
}

h2 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.sub-title {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
}

label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
    font-weight: bold;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.input-icon {
    margin-right: 10px;
    font-size: 18px;
    color: #888;
}

input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 16px;
}

button {
    background-color: #2979ff;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background-color: #125ce5;
}

.search-link {
    margin-top: 20px;
    font-size: 14px;
    color: #2979ff;
}

.search-link a {
    color: #2979ff;
    text-decoration: none;
}

.search-link a:hover {
    text-decoration: underline;
}

/* ✅ Responsive สำหรับหน้าจอเล็ก */
@media screen and (max-width: 480px) {
    .login-box {
        padding: 20px 15px;
    }

    h2 {
        font-size: 20px;
    }

    .sub-title {
        font-size: 13px;
    }

    button {
        font-size: 15px;
        padding: 10px;
    }
}
