@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #e63946;
    --secondary: #1d3557;
    --accent: #457b9d;
    --background: #f1faee;
    --text: #1d3557;
    --white: #ffffff;
    --success: #2a9d8f;
    --warning: #f4a261;
    --error: #e76f51;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(rgba(29, 53, 87, 0.7), rgba(29, 53, 87, 0.7)), 
                url('hospital_background.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 450px;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    max-width: 200px;
    margin-bottom: 30px;
}

h1 {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

p {
    font-weight: 300;
    margin-bottom: 25px;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
}

input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.5);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(69, 123, 157, 0.1);
}

.btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
    filter: brightness(1.1);
}

.error-msg {
    background: rgba(231, 111, 81, 0.1);
    color: var(--error);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--error);
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 900px;
    width: 100%;
}

.header-dash {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.status-box {
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.status-bad {
    background: rgba(231, 111, 81, 0.1);
    border: 2px solid var(--error);
}

.status-good {
    background: rgba(42, 157, 143, 0.1);
    border: 2px solid var(--success);
}

.icon-big {
    font-size: 3rem;
    margin-bottom: 15px;
}

.logout-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.8;
    transition: 0.3s;
}

.logout-link:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .glass-card {
        padding: 25px;
    }
}

/* Print Styles */
@media print {
    body { background: white; padding: 0; color: black; }
    .btn, .logout-link, .no-print { display: none; }
    .glass-card { box-shadow: none; border: 1px solid #ddd; background: white; }
    .container { max-width: 100%; }
}
