* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #e0f0ff 0%, #c8e2f5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

/* subtle medical pattern overlay (only background texture, not intrusive) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="rgba(46,125,170,0.05)" stroke-width="0.8"><path d="M12 2v4M12 8v8M12 18v4M4 12H2M6 12h4M14 12h4M20 12h2M8 8L6 6M10 10L8 8M16 16l2 2M14 14l2 2"/><circle cx="12" cy="12" r="2"/></svg>');
    background-repeat: repeat;
    background-size: 32px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* card styling: soft premium medical card */
.login-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(0px);
    border-radius: 2rem;
    border: none;
    box-shadow: 0 25px 45px -12px rgba(0, 32, 64, 0.25), 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
    overflow: hidden;
    z-index: 2;
}

/* brand & icon area */
.hospital-brand {
    background: linear-gradient(120deg, #0b5f24 0%, #009688 100%);
    padding: 1.8rem 1.5rem;
    text-align: center;
    color: white;
}

.hospital-icon {
    font-size: 3rem;
    background: rgb(255 255 255 / 83%);
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 35px;
    margin-bottom: 1rem;
    backdrop-filter: blur(2px);
}

.hospital-brand h2 {
    font-weight: 600;
    font-size: 1.7rem;
    letter-spacing: -0.3px;
    margin-bottom: 0.25rem;
}

.hospital-brand p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 0;
}

/* form section */
.form-section {
    padding: 2rem 2rem 2.2rem 2rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: #1e4a6e;
    margin-bottom: 0.4rem;
    letter-spacing: -0.2px;
}

.input-group-text-custom {
    background-color: #f8fbfe;
    border-right: none;
    color: #2c7da0;
    font-size: 1.1rem;
}

.form-control {
    border-left: none;
    padding: 0.75rem 0.75rem 0.75rem 0;
    font-size: 0.95rem;
    background-color: #f8fbfe;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.2);
    background-color: #ffffff;
}

.input-group:has(.form-control:focus) .input-group-text-custom {
    border-color: #2c7da0;
    background-color: #ffffff;
}

.btn-login {
    background: linear-gradient(120deg, #0b5f24 0%, #009688 100%);
    border: none;
    padding: 0.8rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 2rem;
    transition: all 0.2s;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn-login:hover {
    background: linear-gradient(95deg, #0a3e4e 0%, #135d78 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(27, 107, 138, 0.25);
}

.btn-login:active {
    transform: translateY(1px);
}

.forgot-link,
.register-link {
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link {
    color: #5f8b9f;
}

.forgot-link:hover {
    color: #0f4c5f;
    text-decoration: underline;
}

.register-section {
    border-top: 1px solid #e2edf2;
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    text-align: center;
}

.register-link {
    color: #1b6b8a;
    font-weight: 600;
}

.register-link:hover {
    color: #0a3e4e;
    text-decoration: underline;
}

/* hospital badge */
.badge-medical {
    background: #eef5f9;
    color: #1c6b89;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* alert toasting (demo only) */
.demo-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 260px;
    background: white;
    border-left: 5px solid #1b6b8a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
    .form-section {
        padding: 1.6rem;
    }

    .hospital-brand h2 {
        font-size: 1.4rem;
    }

    .login-card {
        margin: 0;
    }

    body {
        padding: 1rem;
    }
}