body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
}
.login-box {
    background: white;
    padding: 30px;
    width: min(360px, 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    box-sizing: border-box;
}
.admin-box {
    box-sizing: border-box;
    overflow-x: auto;
}
h1 {
    margin-top: 0;
    text-align: center;
}
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    box-sizing: border-box;
    font-size: 16px;
}
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 8px;
}
button {
    width: 100%;
    padding: 12px;
    border: none;
    background: #1f4ed8;
    color: white;
    cursor: pointer;
    border-radius: 8px;
}
button:hover {
    opacity: 0.95;
}
.error {
    color: #b00020;
    font-size: 14px;
}
a {
    color: #1f4ed8;
    text-decoration: none;
}

/* Mobile start pages need room for keyboard, browser bars and longer Swedish labels. */
@media (max-width: 600px) {
    body {
        align-items: flex-start;
        padding: 18px 12px;
    }

    .login-box {
        padding: 22px 18px;
        border-radius: 10px;
        margin-top: 8px;
    }

    .admin-box {
        width: 100%;
        max-width: 100%;
        padding: 18px 14px;
        border-radius: 10px;
    }

    h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    button,
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="email"] {
        min-height: 46px;
    }
}
