:root {
    --primary-med: #4870d8;
    --secondary-med: #7b95da;
    --accent: #ff5252;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f7f6;
    overflow: hidden;
}

/* Live Background Animation */
.medical-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle, #ffffff, #d1e8e4);
}

.pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-med);
    border-radius: 50%;
    opacity: 0;
    animation: heartbeat 3s infinite;
}

@keyframes heartbeat {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

/* Login Card */
.login-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(5px);
    margin: 20px;
}

h2 { color: var(--primary-med); text-align: center; margin-bottom: 10px; }
p { text-align: center; color: #666; font-size: 0.9rem; margin-bottom: 30px; }

.input-group { margin-bottom: 20px; }

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Crucial for responsiveness */
}

button {
    width: 100%;
    padding: 12px;
    background: var(--primary-med);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover { background: #004d40; }

.form-footer { text-align: center; margin-top: 15px; }
.form-footer a { color: var(--primary-med); text-decoration: none; font-size: 0.8rem; }