/* heading style */
h1 {
    color: red;
    font-size: 24px;
}

/* legacy body styles (commented out)
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #b3ecff, #e6f7ff); 
    background-image: '<?php echo $backgroundImage; ?>';
    background-size: cover;
    color: #333;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
*/

/* ————————————————————————
   SUCCESS STATE
   ———————————————————————— */
body.success {
    /* Debug: Current CSS body is <?php echo $success ? 'success' : 'failure'; ?> */
    background-image: url('../images/created_user.png');
    background-size: cover;
    background-position: center;
    font-family: Arial, sans-serif;

    /* remove flex‐centering so header sits at top */
    margin: 0;
    /* ensure body still fills viewport if you need full‐height background */
    min-height: 100vh;
}

/* ————————————————————————
   FAILURE STATE
   ———————————————————————— */
body.failure {
    background-image: url('./images/slender.png');
    background-size: cover;
    background-position: center;
    font-family: Arial, sans-serif;

    margin: 0;
    min-height: 100vh;
}

/* ————————————————————————
   CENTRAL CONTENT BOX
   ———————————————————————— */
.container {
    /* center box horizontally and give top/bottom breathing room */
    margin: 2rem auto;
    text-align: center;
    padding: 30px;
    border: 2px solid #ccc;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25);
    width: 60%;
    max-width: 500px;

    /* pop-in animation */
    animation: popIn 0.4s ease-out forwards;
}

/* status message inside the container */
.message {
    font-size: 22px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 20px;
    text-shadow: 1px 1px #fff;
}

.success {
    color: #28a745;
}

.error {
    color: #dc3545;
}

/* button group */
.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* base button styles */
button {
    font-family: 'Segoe UI', sans-serif;
    background-color: #007bff;
    border: none;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* variant for dashboard‐style button */
.dashboard-button {
    background-color: #28a745;
}

.dashboard-button:hover {
    background-color: #218838;
}

/* popIn keyframes */
@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
