/* Reset and base styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f7fafd;
    color: #222;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Logo at the top */
.logo-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 16px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff; /* was #ffe5e7 */
    box-shadow: 0 2px 8px rgba(227, 6, 19, 0.08);
}
.logo-placeholder img {
    max-width: 60px;
    max-height: 60px;
}

/* Main container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Login form */
.login-form {
    width: 100%;
    max-width: 97%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(227, 6, 19, 0.08); /* red shadow */
    padding: 32px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 18px;
    box-sizing: border-box;
}

.login-form h2 {
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #E30613; /* red */
    letter-spacing: 0.5px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 97%;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 12px;
    border: 1.5px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1em;
    background: #f7fafd;
    transition: border 0.2s;
    outline: none;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-color: #E30613; /* red */
    background: #fff;
}

.login-form button {
    width: 97%;
    padding: 14px 0;
    background: #E30613; /* red */
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.login-form button:hover,
.login-form button:focus {
    background: #b9050f; /* darker red for hover/focus */
}

.error {
    color: #e0245e;
    background: #fff0f3;
    border: 1px solid #f8bbd0;
    border-radius: 8px;
    padding: 10px 0;
    text-align: center;
    margin-top: 8px;
    font-size: 1em;
}

/* Footer styles */
.footer {
    text-align: center;
    color: #8899a6;
    font-size: 0.95em;
    margin: 32px 0 8px 0;
    letter-spacing: 0.2px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}
.footer-logo img {
    max-width: 60px;
    max-height: 60px;
}

/* Loading overlay styles */
#loadingOverlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner {
    border: 8px solid #eee;
    border-top: 8px solid #E30613;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* Responsive: Mobile first */
@media (max-width: 600px) {
    .container {
        max-width: 100vw;
        padding: 0 8px;
    }
    .login-form {
        max-width: 100%;
        padding: 24px 8px 18px 8px;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 12px;
    }
    .logo-placeholder {
        margin-top: 24px;
        margin-bottom: 10px;
        width: 64px;
        height: 64px;
    }
    .footer-logo img {
        max-width: 44px;
        max-height: 44px;
    }
    .footer {
        margin: 18px 0 6px 0;
    }
}