/* Reset default browser margins */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    min-height: 100vh;
    /* Flexbox perfectly centers everything horizontally and vertically */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Animated Gradient Background */
    background: linear-gradient(-45deg, #f9dbdb, #a0a0a0, #000000, #d9cbf7);
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
    color: #ffffff;
}

/* Background Animation Keyframes */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism Card Container */
.card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    backdrop-filter: blur(12px); /* The blur effect behind the card */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    
    /* Fade in effect when page loads */
    transform: translateY(20px);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

p {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    min-height: 30px; /* Keeps the card from resizing while text types out */
}

/* Spinning Loader Icon Styling */
.loader {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 25px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}