* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background: #374151;
    /* background: #111827; */
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
}

.login-container {
    width: min(90vw, 360px);
    text-align: center;
}

h1 {
    margin: 0 0 10px;
    font-size: 2.5rem;
    font-weight: 700;
}

.subtitle {
    margin: 0 0 25px;
    color: #9ca3af;
    font-size: 1rem;
}

#pin-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 20px;
    margin-bottom: 25px;
}

#pin-display span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4da6ff;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.keypad button {
    height: 70px;

    border: none;
    border-radius: 14px;

    background: #1f2937;
    color: #ffffff;

    font-size: 1.5rem;
    font-weight: 500;

    cursor: pointer;

    transition:
        background-color 0.1s,
        transform 0.1s;
}

.keypad button:active {
    background: #374151;
    transform: scale(0.95);
}

.keypad .empty {
    visibility: hidden;
    pointer-events: none;
}

#delete-key {
    font-size: 1.4rem;
}

.login-button {
    width: 100%;
    height: 55px;

    margin-top: 25px;

    border: none;
    border-radius: 12px;

    background: #2563eb;
    color: #ffffff;

    font-size: 1.1rem;
    font-weight: 600;

    cursor: pointer;

    transition: background-color 0.15s, transform 0.1s;
}

.login-button:active {
    background: #1d4ed8;
    transform: scale(0.98);
}

.message {
    min-height: 24px;
    margin-top: 15px;

    color: #f87171;
    font-size: 0.95rem;
}

.hidden {
    display: none !important;
}

.menu-screen {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
}

.menu-screen h1 {
    text-align: center;
    margin-bottom: 35px;
}

#services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 25px;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 15px;

    text-decoration: none;
    color: inherit;

    border-radius: 15px;

    transition: transform 0.15s ease;
}

.service:hover {
    transform: scale(1.05);
}

.service img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.service span {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}


.logout-button {
    display: block;

    margin: 35px auto 10px;

    padding: 10px 20px;

    border: none;
    border-radius: 12px;

    background: #1f2937;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.logout-button:active {
    background: #374151;
    transform: scale(0.95);
}