body {
    font-family: Arial, sans-serif;
    background: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
}

.container {
    background: white;
    padding: 30px 25px; /* slightly bigger for breathing room */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 24px; /* slightly bigger for readability */
    margin-bottom: 20px;
}

input {
    width: 93%;
    padding: 14px; /* touch-friendly */
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: 0.3s;
}

input:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 5px #1e3a8a;
    outline: none;
}

button {
    width: 100%;
    padding: 14px; /* bigger and more touch-friendly */
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

button:hover {
    background: #2563eb;
}

.api-message {
    margin-top: 15px;
    padding: 14px; /* more padding for readability */
    background-color: #f3f4f6;
    border-left: 5px solid #1e3a8a;
    border-radius: 5px;
    overflow-x: auto;
}

.api-message pre {
    margin: 0;
    font-family: Consolas, monospace;
    font-size: 14px; /* slightly bigger for mobile */
    color: #1e3a8a;
    white-space: pre-wrap;
    word-break: break-word;
}

.error {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

a {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #1e3a8a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.logout {
    position: fixed;
    top: 20px;
    right: 20px;
    text-decoration: none;
    color: white;
    background: #1e3a8a;
    padding: 10px 20px; /* bigger and easier to tap */
    border-radius: 30px;
    font-size: 14px;
    transition: 0.3s ease;
    z-index: 1000;
}

.logout:hover {
    transform: translateY(-2px);
}

/* 📱 SMALL DEVICES */
@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
    }

    h2 {
        font-size: 22px;
    }

    input {
        padding: 12px;
        font-size: 15px;
    }

    button {
        padding: 12px;
        font-size: 15px;
    }

    .logout {
        padding: 8px 16px;
        font-size: 13px;
    }
}