/* Global Reset & Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    background: #f4f4f9;
}

/* Containers & Cards */
.container, .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.container { padding: 30px; }
.card { padding: 20px; margin-bottom: 20px; border: 1px solid #eee; }

/* Logo Styling */
.logo-wrapper { text-align: center; margin-bottom: 20px; }
.alloy-logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }

/* Headings & Text */
h1, h2 { color: #333; margin-top: 0; text-align: center; }
h3 { margin: 0 0 10px 0; }
p { color: #666; margin-bottom: 15px; }

/* Forms */
label { display: block; margin-bottom: 8px; font-weight: bold; color: #555; }
input { 
    width: 100%; padding: 12px; margin-bottom: 20px; 
    border: 1px solid #ddd; border-radius: 8px; 
    box-sizing: border-box; font-size: 16px; 
}

/* Buttons */
.btn {
    display: block; width: 100%; padding: 14px; 
    border: none; border-radius: 8px; 
    font-size: 16px; font-weight: bold; 
    cursor: pointer; text-decoration: none; 
    text-align: center; box-sizing: border-box; 
    color: white; transition: background 0.2s;
}

.btn-primary { background-color: #007bff; }
.btn-primary:hover { background-color: #0056b3; }

.btn-success { background-color: #28a745; }
.btn-success:hover { background-color: #218838; }

/* Utility */
.note { font-size: 0.9em; color: #888; text-align: center; margin-top: 15px; }
.text-center { text-align: center; }
.back-link { display: block; margin-top: 30px; text-align: center; color: #666; text-decoration: none; }

/* ... existing styles ... */

/* LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    z-index: 9999;
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.loading-emoji {
    font-size: 60px;
    margin-bottom: 20px;
    /* Cute driving animation */
    animation: drive 1s infinite alternate ease-in-out;
}

.loading-text {
    font-size: 1.5em;
    color: #333;
    font-weight: bold;
}

.loading-subtext {
    margin-top: 10px;
    color: #666;
    font-size: 0.9em;
}

@keyframes drive {
    from { transform: translateX(-10px) rotate(-5deg); }
    to { transform: translateX(10px) rotate(5deg); }
}
