﻿body {
    background-color: #fcfcf1;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 40px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.login-box {
    background-color: white;
    padding: 10px 30px 10px 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 30%;
    
    min-width: 280px;
    height:fit-content;
}

.logo {
    width: 150px;
    margin-bottom: 20px;
}

.pin-input {
    width: 100%;
    
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
    padding: 8px;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

    .keypad button {
        height: 50px;
        font-size: 20px;
        cursor: pointer;
        border: none;
        background-color: #eaeaea;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

        .keypad button:hover {
            background-color: #ccc;
        }

.error {
    color: red;
    margin-top: 15px;
}

/* ✅ موبايلات */
@media (max-device-width: 600px) {
    html {
        height: 100vh;
        overflow: hidden;
        margin: 0;
        padding: 0;
        
    }
    body {
        margin: 0;
        flex-direction: column;
        padding: 0;
        background-color: #F6F6F6;
        overflow: hidden;
        height: 100vh;
    }

    .login-box {
        width: 100%;
        height: 100%;
        padding: 70px;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 50px;
    }

    .logo {
        width: 400px;
        margin: 30px;
    }

    .keypad button {
        height: 200px;
        width: 220px;
        font-size: 40;
        font-weight: 45px;
    }

    .pin-input {
        font-size: 30px;
        width: 70%;
        margin: 20px;
    }
    #loginForm{
        font-size:30px;
    }
}
