* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #ffffff;
    
    /* The "Breathe" Animated Gradient */
    background: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #1e3a8a);
    background-size: 400% 400%;
    animation: breathe 15s ease infinite;
}

@keyframes breathe {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism Logon Card */
#login-screen {
    text-align: center;
    background: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px 30px; /* Reduced for better mobile spacing */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 90%; /* Responsive width */
    max-width: 400px; /* Caps the maximum size on desktop */
}

h1 {
    margin-top: 0;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #a1a1aa; 
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.version {
    color: rgba(255, 255, 255, 0.3); 
    font-size: 0.8rem; 
    margin-top: 30px; 
    margin-bottom: 0;
    font-family: monospace;
}

/* Restyled Netlify Button */
.netlify-identity-button, [data-netlify-identity-button] a {
    background-color: #3b82f6 !important; 
    color: #ffffff !important;
    padding: 14px 32px !important; 
    border-radius: 10px !important;
    text-decoration: none !important; 
    font-size: 1.1rem !important;
    font-weight: 600 !important; 
    border: none !important;
    cursor: pointer !important; 
    transition: all 0.3s ease !important;
    display: inline-block !important; 
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
}

.netlify-identity-button:hover, [data-netlify-identity-button] a:hover {
    background-color: #60a5fa !important; 
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6) !important;
}

/* Animated Background Blobs */
.color-blob {
    position: fixed; /* Changed to fixed so they stay put while background breathes */
    width: 45vw;
    height: 45vw;
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    animation: move-blobs 25s infinite alternate ease-in-out;
    opacity: 0.5; /* Makes them much more visible */
}

/* Bright Cyan/Blue */
.blob-1 {
    top: -5%;
    left: -5%;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}

/* Hot Pink/Purple */
.blob-2 {
    bottom: -10%;
    right: -5%;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    animation-delay: -7s;
}

/* Gold/Amber */
.blob-3 {
    top: 40%;
    left: 30%;
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    animation-delay: -12s;
}

@keyframes move-blobs {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(10%, 15%) scale(1.2) rotate(120deg); }
    66% { transform: translate(-15%, 5%) scale(0.8) rotate(240deg); }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}