/* styles.css - Unified Mobile-Friendly Styles */

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

/* Container */
.container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

/* Headings */
h1, h2, h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* Labels & Inputs */
label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Buttons */
button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #0056b3;
}

/* QR Code Image */
.qr-code {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
    height: auto;
}

/* Messages */
.message {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    button {
        font-size: 14px;
        padding: 10px;
    }
}
